Disable jank metrics for web (#109356)
This commit is contained in:
@@ -120,7 +120,7 @@ class CommandHelp {
|
||||
|
||||
late final CommandHelpOption j = _makeOption(
|
||||
'j',
|
||||
'Dump frame raster stats for the current frame.',
|
||||
'Dump frame raster stats for the current frame. (Unsupported for web)',
|
||||
);
|
||||
|
||||
late final CommandHelpOption k = _makeOption(
|
||||
|
||||
@@ -701,6 +701,10 @@ abstract class ResidentHandlers {
|
||||
return false;
|
||||
}
|
||||
for (final FlutterDevice? device in flutterDevices) {
|
||||
if (device?.targetPlatform == TargetPlatform.web_javascript) {
|
||||
logger!.printWarning('Unable to get jank metrics for web');
|
||||
continue;
|
||||
}
|
||||
final List<FlutterView> views = await device!.vmService!.getFlutterViews();
|
||||
for (final FlutterView view in views) {
|
||||
final Map<String, Object>? rasterData =
|
||||
|
||||
Reference in New Issue
Block a user