Skip to content

Commit 96e42de

Browse files
Added error message for flutter_gallery transitions_perf test. (flutter#47776)
1 parent 8b08120 commit 96e42de

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

examples/flutter_gallery/test_driver/transitions_perf_test.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@ Future<void> saveDurationsHistogram(List<Map<String, dynamic>> events, String ou
103103

104104
if (unexpectedValueCounts.isNotEmpty) {
105105
final StringBuffer error = StringBuffer('Some routes recorded wrong number of values (expected 2 values/route):\n\n');
106+
// When run with --trace-startup, the VM stores trace events in an endless buffer instead of a ring buffer.
107+
error.write('You must add the --trace-startup parameter to run the test. \n\n');
106108
unexpectedValueCounts.forEach((String routeName, int count) {
107109
error.writeln(' - $routeName recorded $count values.');
108110
});

0 commit comments

Comments
 (0)