Commit 57fa6348 authored by Jon Coppeard's avatar Jon Coppeard
Browse files

Bug 1259347 - Fix nursery telemetry to report committed size rather than max size r=terrence

parent 931e6d0f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -672,7 +672,7 @@ js::Nursery::collect(JSRuntime* rt, JS::gcreason::Reason reason, ObjectGroupList
    rt->addTelemetry(JS_TELEMETRY_GC_MINOR_REASON, reason);
    if (totalTime > 1000)
        rt->addTelemetry(JS_TELEMETRY_GC_MINOR_REASON_LONG, reason);
    rt->addTelemetry(JS_TELEMETRY_GC_NURSERY_BYTES, nurserySize());
    rt->addTelemetry(JS_TELEMETRY_GC_NURSERY_BYTES, sizeOfHeapCommitted());

    rt->gc.stats.endNurseryCollection(reason);
    TraceMinorGCEnd();