mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 22:01:30 +00:00
Bug 895019 - Tracelogger: Add logger for minor gc, r=jandem
This commit is contained in:
parent
22709b6535
commit
54ca2d48ee
@ -70,6 +70,8 @@ const char* const TraceLogging::type_name[] = {
|
||||
"stop,yarr_jit_execute",
|
||||
"start,gc",
|
||||
"stop,gc",
|
||||
"start,minor_gc",
|
||||
"stop,minor_gc",
|
||||
"info,engine,interpreter",
|
||||
"info,engine,baseline",
|
||||
"info,engine,ionmonkey"
|
||||
|
@ -23,6 +23,8 @@ class TraceLogging
|
||||
YARR_JIT_STOP,
|
||||
GC_START,
|
||||
GC_STOP,
|
||||
MINOR_GC_START,
|
||||
MINOR_GC_STOP,
|
||||
INFO_ENGINE_INTERPRETER,
|
||||
INFO_ENGINE_BASELINE,
|
||||
INFO_ENGINE_IONMONKEY,
|
||||
|
@ -4677,6 +4677,11 @@ void
|
||||
js::MinorGC(JSRuntime *rt, JS::gcreason::Reason reason)
|
||||
{
|
||||
#ifdef JSGC_GENERATIONAL
|
||||
#if JS_TRACE_LOGGING
|
||||
AutoTraceLog logger(TraceLogging::defaultLogger(),
|
||||
TraceLogging::MINOR_GC_START,
|
||||
TraceLogging::MINOR_GC_STOP);
|
||||
#endif
|
||||
rt->gcNursery.collect(rt, reason);
|
||||
#endif
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user