Settle bottom-anchored restores, flush open timings in the probe, record numbers
This commit is contained in:
@@ -52,6 +52,14 @@ void markChatPerfHistory() {
|
||||
if (chatPerfMessages == 0) return;
|
||||
// ignore: avoid_print
|
||||
print('PERF_HISTORY');
|
||||
// The web engine hands timings over in batches at the end of a frame, so a
|
||||
// quiet page can hold the open's last frames back; two late frames flush
|
||||
// them. Each costs well under a millisecond and the probe ignores them.
|
||||
for (final ms in [2500, 2700]) {
|
||||
Timer(Duration(milliseconds: ms), () {
|
||||
WidgetsBinding.instance.scheduleFrame();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
/// Starts the frame report and, when asked, the streamed reply through [emit].
|
||||
|
||||
Reference in New Issue
Block a user