Bug 895019 - Tracelogger: Add logger for minor gc, r=jandem

This commit is contained in:
Hannes Verschore 2013-07-19 10:41:32 -07:00
parent 22709b6535
commit 54ca2d48ee
3 changed files with 9 additions and 0 deletions

View File

@ -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"

View File

@ -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,

View File

@ -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
}