Bug 1752646 - Emit a marker when a GC interrupt is requested r=smaug

Differential Revision: https://phabricator.services.mozilla.com/D137351
This commit is contained in:
Steve Fink 2022-02-08 23:22:29 +00:00
Родитель 9f6b747106
Коммит c780e12c98
1 изменённых файлов: 4 добавлений и 1 удалений

Просмотреть файл

@ -495,7 +495,10 @@ void CCGCScheduler::EnsureGCRunner(TimeDuration aDelay) {
TimeDuration::FromMilliseconds(
StaticPrefs::javascript_options_gc_delay_interslice()),
mActiveIntersliceGCBudget, true, [this] { return mDidShutdown; },
[this](uint32_t) { mInterruptRequested = true; });
[this](uint32_t) {
PROFILER_MARKER_UNTYPED("GC Interrupt", GCCC);
mInterruptRequested = true;
});
}
// nsJSEnvironmentObserver observes the user-interaction-inactive notifications