Bug 1522204 - Add profiler label for gray unmarking r=mstange

This commit is contained in:
Jon Coppeard 2019-02-04 10:55:11 +00:00
parent 8e47f2392b
commit 1add144308

View File

@ -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);