Commit d5d4e7c0 authored by Yegor's avatar Yegor

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

parent f540c978
...@@ -57,6 +57,9 @@ class TimelineSummary { ...@@ -57,6 +57,9 @@ class TimelineSummary {
'average_frame_build_time_millis': computeAverageFrameBuildTimeMillis(), 'average_frame_build_time_millis': computeAverageFrameBuildTimeMillis(),
'missed_frame_build_budget_count': computeMissedFrameBuildBudgetCount(), 'missed_frame_build_budget_count': computeMissedFrameBuildBudgetCount(),
'frame_count': countFrames(), 'frame_count': countFrames(),
'frame_build_times': _extractBeginFrameEvents()
.map((TimedEvent event) => event.duration.inMicroseconds)
.toList()
}; };
} }
......
...@@ -98,6 +98,7 @@ void main() { ...@@ -98,6 +98,7 @@ void main() {
'average_frame_build_time_millis': 7.0, 'average_frame_build_time_millis': 7.0,
'missed_frame_build_budget_count': 2, 'missed_frame_build_budget_count': 2,
'frame_count': 3, 'frame_count': 3,
'frame_build_times': <int>[9000, 1000, 11000],
} }
); );
}); });
...@@ -132,6 +133,7 @@ void main() { ...@@ -132,6 +133,7 @@ void main() {
'average_frame_build_time_millis': 7.0, 'average_frame_build_time_millis': 7.0,
'missed_frame_build_budget_count': 2, 'missed_frame_build_budget_count': 2,
'frame_count': 3, 'frame_count': 3,
'frame_build_times': <int>[9000, 1000, 11000],
}); });
}); });
}); });
......
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