Bug 1245737 (part 2) - Don't bother measuring DtoaState. r=bhackett.

It's gone from 4,096 bytes per JS thread to 72 bytes per thread. (Also, the
old code only measured the DtoaState for the main thread.)
This commit is contained in:
Nicholas Nethercote 2016-02-05 14:50:55 +11:00
parent adbc15ef66
commit 56ed215893
3 changed files with 0 additions and 8 deletions

View File

@ -468,7 +468,6 @@ struct RuntimeSizes
macro(_, MallocHeap, object) \
macro(_, MallocHeap, atomsTable) \
macro(_, MallocHeap, contexts) \
macro(_, MallocHeap, dtoa) \
macro(_, MallocHeap, temporary) \
macro(_, MallocHeap, interpreterStack) \
macro(_, MallocHeap, mathCache) \

View File

@ -530,8 +530,6 @@ JSRuntime::addSizeOfIncludingThis(mozilla::MallocSizeOf mallocSizeOf, JS::Runtim
for (ContextIter acx(this); !acx.done(); acx.next())
rtSizes->contexts += acx->sizeOfIncludingThis(mallocSizeOf);
rtSizes->dtoa += mallocSizeOf(mainThread.dtoaState);
rtSizes->temporary += tempLifoAlloc.sizeOfExcludingThis(mallocSizeOf);
rtSizes->interpreterStack += interpreterStack_.sizeOfExcludingThis(mallocSizeOf);

View File

@ -2485,11 +2485,6 @@ ReportJSRuntimeExplicitTreeStats(const JS::RuntimeStats& rtStats,
KIND_HEAP, rtStats.runtime.contexts,
"JSContext objects and structures that belong to them.");
RREPORT_BYTES(rtPath + NS_LITERAL_CSTRING("runtime/dtoa"),
KIND_HEAP, rtStats.runtime.dtoa,
"The DtoaState object, which is used for converting strings to "
"numbers and vice versa.");
RREPORT_BYTES(rtPath + NS_LITERAL_CSTRING("runtime/temporary"),
KIND_HEAP, rtStats.runtime.temporary,
"Transient data (mostly parse nodes) held by the JSRuntime during "