[driver] output per-frame build times in the timeline summary (#3334)

This commit is contained in:
Yegor 2016-04-14 11:28:16 -07:00
parent f540c978d1
commit d5d4e7c054
2 changed files with 5 additions and 0 deletions

View File

@ -57,6 +57,9 @@ class TimelineSummary {
'average_frame_build_time_millis': computeAverageFrameBuildTimeMillis(),
'missed_frame_build_budget_count': computeMissedFrameBuildBudgetCount(),
'frame_count': countFrames(),
'frame_build_times': _extractBeginFrameEvents()
.map((TimedEvent event) => event.duration.inMicroseconds)
.toList()
};
}

View File

@ -98,6 +98,7 @@ void main() {
'average_frame_build_time_millis': 7.0,
'missed_frame_build_budget_count': 2,
'frame_count': 3,
'frame_build_times': <int>[9000, 1000, 11000],
}
);
});
@ -132,6 +133,7 @@ void main() {
'average_frame_build_time_millis': 7.0,
'missed_frame_build_budget_count': 2,
'frame_count': 3,
'frame_build_times': <int>[9000, 1000, 11000],
});
});
});