Added error message for flutter_gallery transitions_perf test. (#47776)

This commit is contained in:
linxuebin
2020-02-13 08:13:02 +08:00
committed by GitHub
parent 8b08120404
commit 96e42de1c8

View File

@@ -103,6 +103,8 @@ Future<void> saveDurationsHistogram(List<Map<String, dynamic>> 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.');
});