Commit f12e3825 authored by Jakob Andersen's avatar Jakob Andersen Committed by GitHub

Add more logging to diagnose test failures. (#8951)

parent f79b3338
...@@ -189,10 +189,12 @@ Future<Null> downloadStartupTrace(VMService observatory) async { ...@@ -189,10 +189,12 @@ Future<Null> downloadStartupTrace(VMService observatory) async {
final int firstFrameTimestampMicros = extractInstantEventTimestamp(kFirstUsefulFrameEventName); final int firstFrameTimestampMicros = extractInstantEventTimestamp(kFirstUsefulFrameEventName);
if (engineEnterTimestampMicros == null) { 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.'; throw 'Engine start event is missing in the timeline. Cannot compute startup time.';
} }
if (firstFrameTimestampMicros == null) { 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.'; throw 'First frame event is missing in the timeline. Cannot compute startup time.';
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment