From 96e42de1c862f43dc29aa489ecea9b8560c90411 Mon Sep 17 00:00:00 2001 From: linxuebin Date: Thu, 13 Feb 2020 08:13:02 +0800 Subject: [PATCH] Added error message for flutter_gallery transitions_perf test. (#47776) --- examples/flutter_gallery/test_driver/transitions_perf_test.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/flutter_gallery/test_driver/transitions_perf_test.dart b/examples/flutter_gallery/test_driver/transitions_perf_test.dart index 0f32b944e6..13ab5df687 100644 --- a/examples/flutter_gallery/test_driver/transitions_perf_test.dart +++ b/examples/flutter_gallery/test_driver/transitions_perf_test.dart @@ -103,6 +103,8 @@ Future saveDurationsHistogram(List> events, String ou if (unexpectedValueCounts.isNotEmpty) { final StringBuffer error = StringBuffer('Some routes recorded wrong number of values (expected 2 values/route):\n\n'); + // When run with --trace-startup, the VM stores trace events in an endless buffer instead of a ring buffer. + error.write('You must add the --trace-startup parameter to run the test. \n\n'); unexpectedValueCounts.forEach((String routeName, int count) { error.writeln(' - $routeName recorded $count values.'); });