Settle bottom-anchored restores, flush open timings in the probe, record numbers

This commit is contained in:
2026-11-02 00:55:03 +00:00
parent a5f0eb3811
commit c74065dc48
5 changed files with 123 additions and 33 deletions
+8
View File
@@ -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].