mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 05:11:16 +00:00
Bug 1522204 - Add profiler label for gray unmarking r=mstange
This commit is contained in:
parent
8e47f2392b
commit
1add144308
@ -38,6 +38,7 @@
|
||||
#include "gc/Nursery-inl.h"
|
||||
#include "gc/PrivateIterators-inl.h"
|
||||
#include "gc/Zone-inl.h"
|
||||
#include "vm/GeckoProfiler-inl.h"
|
||||
#include "vm/NativeObject-inl.h"
|
||||
#include "vm/Realm-inl.h"
|
||||
#include "vm/StringType-inl.h"
|
||||
@ -3642,6 +3643,11 @@ static bool UnmarkGrayGCThing(JSRuntime* rt, JS::GCCellPtr thing) {
|
||||
// replay, so disallow recorded events from occurring in the tracer.
|
||||
mozilla::recordreplay::AutoDisallowThreadEvents d;
|
||||
|
||||
AutoGeckoProfilerEntry profilingStackFrame(
|
||||
rt->mainContextFromOwnThread(),
|
||||
"UnmarkGrayGCThing",
|
||||
ProfilingStackFrame::Category::GCCC);
|
||||
|
||||
UnmarkGrayTracer unmarker(rt);
|
||||
gcstats::AutoPhase innerPhase(rt->gc.stats(),
|
||||
gcstats::PhaseKind::UNMARK_GRAY);
|
||||
|
Loading…
Reference in New Issue
Block a user