pub fn compute(heap: &Heap) -> (MemoryUsage, ClassCensus)Expand description
Measure heap.
Takes the heap rather than an interpreter, because JS_ComputeMemoryUsage is handed a
runtime and nothing else — and because the walk needs nothing an interpreter has.