Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Commit 752ec5c

Browse files
committed
Bug 1552401 - Add and use a new decommit phase to attribute decommit work r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D32090 --HG-- extra : moz-landing-system : lando
1 parent 28a7458 commit 752ec5c

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

js/src/gc/GC.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3465,6 +3465,7 @@ void GCRuntime::decommitAllWithoutUnlocking(const AutoLockGC& lock) {
34653465
}
34663466

34673467
void GCRuntime::startDecommit() {
3468+
gcstats::AutoPhase ap(stats(), gcstats::PhaseKind::DECOMMIT);
34683469
MOZ_ASSERT(CurrentThreadCanAccessRuntime(rt));
34693470
MOZ_ASSERT(!decommitTask.isRunning());
34703471

js/src/gc/GenerateStatsPhases.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ def __init__(self, name, descr, bucket, children=[]):
159159
JoinParallelTasksPhaseKind
160160
]),
161161
]),
162+
PhaseKind("DECOMMIT", "Decommit", 72),
162163
PhaseKind("GC_END", "End Callback", 44),
163164
PhaseKind("MINOR_GC", "All Minor GCs", 45, [
164165
MarkRootsPhaseKind,

0 commit comments

Comments
 (0)