From f12e3825750993844f75d9f845b6f6c82fef9f60 Mon Sep 17 00:00:00 2001 From: Jakob Andersen Date: Wed, 22 Mar 2017 14:50:17 +0100 Subject: [PATCH] Add more logging to diagnose test failures. (#8951) --- packages/flutter_tools/lib/src/commands/trace.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/flutter_tools/lib/src/commands/trace.dart b/packages/flutter_tools/lib/src/commands/trace.dart index e9f1a20c24..aa80b2b303 100644 --- a/packages/flutter_tools/lib/src/commands/trace.dart +++ b/packages/flutter_tools/lib/src/commands/trace.dart @@ -189,10 +189,12 @@ Future downloadStartupTrace(VMService observatory) async { final int firstFrameTimestampMicros = extractInstantEventTimestamp(kFirstUsefulFrameEventName); if (engineEnterTimestampMicros == null) { + printTrace('Engine start event is missing in the timeline: $timeline'); throw 'Engine start event is missing in the timeline. Cannot compute startup time.'; } if (firstFrameTimestampMicros == null) { + printTrace('First frame event is missing in the timeline: $timeline'); throw 'First frame event is missing in the timeline. Cannot compute startup time.'; }