diff --git a/testing/dart/observatory/tracing_test.dart b/testing/dart/observatory/tracing_test.dart index 6372a6a159763..b2bfaeb6ca261 100644 --- a/testing/dart/observatory/tracing_test.dart +++ b/testing/dart/observatory/tracing_test.dart @@ -19,7 +19,7 @@ Future _testChromeFormatTrace(vms.VmService vmService) async { int saveLayerRecordCount = 0; int saveLayerCount = 0; - int flowEventCount = 0; + // int flowEventCount = 0; for (final vms.TimelineEvent event in timeline.traceEvents!) { final Map json = event.json!; if (json['ph'] == 'B') { @@ -29,13 +29,15 @@ Future _testChromeFormatTrace(vms.VmService vmService) async { if (json['name'] == 'Canvas::saveLayer') { saveLayerCount += 1; } - } else if (json['ph'] == 's' || json['ph'] == 't' || json['ph'] == 'f') { - flowEventCount += 1; } + // else if (json['ph'] == 's' || json['ph'] == 't' || json['ph'] == 'f') { + // flowEventCount += 1; + // } } expect(saveLayerRecordCount, 3); expect(saveLayerCount, impellerEnabled ? 2 : 3); - expect(flowEventCount, 5); + // TODO(derekxu16): Deflake https://github.com/flutter/flutter/issues/144394 + // expect(flowEventCount, 5); } Future _testPerfettoFormatTrace(vms.VmService vmService) async { @@ -48,7 +50,7 @@ Future _testPerfettoFormatTrace(vms.VmService vmService) async { int saveLayerRecordCount = 0; int saveLayerCount = 0; - int flowIdCount = 0; + // int flowIdCount = 0; for (final TrackEvent event in events) { if (event.type == TrackEvent_Type.TYPE_SLICE_BEGIN) { if (event.name == 'ui.Canvas::saveLayer (Recorded)') { @@ -57,12 +59,13 @@ Future _testPerfettoFormatTrace(vms.VmService vmService) async { if (event.name == 'Canvas::saveLayer') { saveLayerCount += 1; } - flowIdCount += event.flowIds.length; + // flowIdCount += event.flowIds.length; } } expect(saveLayerRecordCount, 3); expect(saveLayerCount, impellerEnabled ? 2 : 3); - expect(flowIdCount, 5); + // TODO(derekxu16): Deflake https://github.com/flutter/flutter/issues/144394 + // expect(flowIdCount, 5); } void main() {