mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
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:
parent
adbc15ef66
commit
56ed215893
@ -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) \
|
||||
|
@ -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);
|
||||
|
@ -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 "
|
||||
|
Loading…
Reference in New Issue
Block a user