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

This commit is contained in:
Jakob Andersen
2017-03-22 14:50:17 +01:00
committed by GitHub
parent f79b333882
commit f12e382575

View File

@@ -189,10 +189,12 @@ Future<Null> 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.';
}