mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 897396 - Add telemetry to Session Store for restoring a window; r=ttaubert
This commit is contained in:
parent
5f1ae9526b
commit
8ea2ec2a8f
@ -2781,6 +2781,8 @@ let SessionStoreInternal = {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
TelemetryStopwatch.start("FX_SESSION_RESTORE_RESTORE_WINDOW_MS");
|
||||||
|
|
||||||
// We're not returning from this before we end up calling restoreHistoryPrecursor
|
// We're not returning from this before we end up calling restoreHistoryPrecursor
|
||||||
// for this window, so make sure we send the SSWindowStateBusy event.
|
// for this window, so make sure we send the SSWindowStateBusy event.
|
||||||
this._setWindowStateBusy(aWindow);
|
this._setWindowStateBusy(aWindow);
|
||||||
@ -2933,6 +2935,8 @@ let SessionStoreInternal = {
|
|||||||
// set smoothScroll back to the original value
|
// set smoothScroll back to the original value
|
||||||
tabstrip.smoothScroll = smoothScroll;
|
tabstrip.smoothScroll = smoothScroll;
|
||||||
|
|
||||||
|
TelemetryStopwatch.finish("FX_SESSION_RESTORE_RESTORE_WINDOW_MS");
|
||||||
|
|
||||||
this._sendRestoreCompletedNotifications();
|
this._sendRestoreCompletedNotifications();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -2545,6 +2545,13 @@
|
|||||||
"extended_statistics_ok": true,
|
"extended_statistics_ok": true,
|
||||||
"description": "Session restore: Time to make a backup copy of the session file (ms)"
|
"description": "Session restore: Time to make a backup copy of the session file (ms)"
|
||||||
},
|
},
|
||||||
|
"FX_SESSION_RESTORE_RESTORE_WINDOW_MS": {
|
||||||
|
"kind": "exponential",
|
||||||
|
"high": "3000",
|
||||||
|
"n_buckets": 10,
|
||||||
|
"extended_statistics_ok": true,
|
||||||
|
"description": "Session restore: Time spent blocking the main thread while restoring a window state (ms)"
|
||||||
|
},
|
||||||
"INNERWINDOWS_WITH_MUTATION_LISTENERS": {
|
"INNERWINDOWS_WITH_MUTATION_LISTENERS": {
|
||||||
"kind": "boolean",
|
"kind": "boolean",
|
||||||
"description": "Deleted or to-be-reused innerwindow which has had mutation event listeners."
|
"description": "Deleted or to-be-reused innerwindow which has had mutation event listeners."
|
||||||
|
Loading…
Reference in New Issue
Block a user