forked from Floorp-Projects/Floorp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1689953: Harmonize shutdown phase definitions across nsTerminator…
… and AppShutdown r=dthayer,chutten This patch wants to solve several quirks around the shutdown terminator. - Use the same shutdown phase definitions in AppShutdown and nsTerminator. This touches quite a few files. - Ensure that the terminator phase shift is handled before any shutdown observer notifications are sent and reduce its heartbeat duration. - Add missing phases to the shutdown telemetry. Please note that this changes the unit of "tick" to 100ms rather than 1s. As a side effect, we also remove the obsolete "shutdown-persist" context. While the existing test coverage continues to prove the most important functions, we acknowledge the wish for better test coverage with [[ https://bugzilla.mozilla.org/show_bug.cgi?id=1693966 | bug 1693966 ]]. Differential Revision: https://phabricator.services.mozilla.com/D103626
- Loading branch information
1 parent
466e0ca
commit 02aaf67
Showing
42 changed files
with
370 additions
and
235 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12632,34 +12632,75 @@ | |
"kind": "exponential", | ||
"high": 65, | ||
"n_buckets": 10, | ||
"bug_numbers": [1689953], | ||
"alert_emails": ["[email protected], [email protected]"], | ||
"description": "Duration of shutdown phase quit-application, as measured by the shutdown terminator, in seconds of activity" | ||
}, | ||
"SHUTDOWN_PHASE_DURATION_TICKS_PROFILE_CHANGE_NET_TEARDOWN": { | ||
"record_in_processes": ["main", "content"], | ||
"products": ["firefox", "fennec", "thunderbird"], | ||
"expires_in_version": "never", | ||
"kind": "exponential", | ||
"high": 65, | ||
"n_buckets": 10, | ||
"bug_numbers": [1689953], | ||
"alert_emails": ["[email protected], [email protected]"], | ||
"description": "Duration of shutdown phase profile-change-net-teardown, as measured by the shutdown terminator, in seconds of activity" | ||
}, | ||
"SHUTDOWN_PHASE_DURATION_TICKS_PROFILE_CHANGE_TEARDOWN": { | ||
"record_in_processes": ["main", "content"], | ||
"products": ["firefox", "fennec", "thunderbird"], | ||
"expires_in_version": "never", | ||
"kind": "exponential", | ||
"high": 65, | ||
"n_buckets": 10, | ||
"bug_numbers": [1689953], | ||
"alert_emails": ["[email protected], [email protected]"], | ||
"description": "Duration of shutdown phase profile-change-teardown, as measured by the shutdown terminator, in seconds of activity" | ||
}, | ||
"SHUTDOWN_PHASE_DURATION_TICKS_PROFILE_BEFORE_CHANGE": { | ||
"record_in_processes": ["main", "content"], | ||
"products": ["firefox", "fennec", "thunderbird"], | ||
"expires_in_version": "never", | ||
"kind": "exponential", | ||
"high": 65, | ||
"n_buckets": 10, | ||
"bug_numbers": [1689953], | ||
"alert_emails": ["[email protected], [email protected]"], | ||
"description": "Duration of shutdown phase profile-before-change, as measured by the shutdown terminator, in seconds of activity" | ||
}, | ||
"SHUTDOWN_PHASE_DURATION_TICKS_PROFILE_BEFORE_CHANGE_QM": { | ||
"record_in_processes": ["main", "content"], | ||
"products": ["firefox", "fennec", "thunderbird"], | ||
"expires_in_version": "never", | ||
"kind": "exponential", | ||
"high": 65, | ||
"n_buckets": 10, | ||
"bug_numbers": [1689953], | ||
"alert_emails": ["[email protected], [email protected]"], | ||
"description": "Duration of shutdown phase profile-before-change-qm, as measured by the shutdown terminator, in seconds of activity" | ||
}, | ||
"SHUTDOWN_PHASE_DURATION_TICKS_XPCOM_WILL_SHUTDOWN": { | ||
"record_in_processes": ["main", "content"], | ||
"products": ["firefox", "fennec", "thunderbird"], | ||
"expires_in_version": "never", | ||
"kind": "exponential", | ||
"high": 65, | ||
"n_buckets": 10, | ||
"bug_numbers": [1689953], | ||
"alert_emails": ["[email protected], [email protected]"], | ||
"description": "Duration of shutdown phase xpcom-will-shutdown, as measured by the shutdown terminator, in seconds of activity" | ||
}, | ||
"SHUTDOWN_PHASE_DURATION_TICKS_PROFILE_BEFORE_CHANGE": { | ||
"SHUTDOWN_PHASE_DURATION_TICKS_XPCOM_SHUTDOWN": { | ||
"record_in_processes": ["main", "content"], | ||
"products": ["firefox", "fennec", "thunderbird"], | ||
"expires_in_version": "never", | ||
"kind": "exponential", | ||
"high": 65, | ||
"n_buckets": 10, | ||
"description": "Duration of shutdown phase profile-before-change, as measured by the shutdown terminator, in seconds of activity" | ||
"bug_numbers": [1689953], | ||
"alert_emails": ["[email protected], [email protected]"], | ||
"description": "Duration of shutdown phase xpcom-shutdown, as measured by the shutdown terminator, in seconds of activity" | ||
}, | ||
"TAP_TO_LOAD_ENABLED": { | ||
"record_in_processes": ["main", "content"], | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.