pub unsafe extern "C" fn GetMemoryUsageForZone(zone: *mut Zone) -> u64
Expand description

This function reports memory used by a zone in bytes, this includes:

  • The size of this JS GC zone.
  • Malloc memory referred to from this zone.
  • JIT memory for this zone.

Note that malloc memory referred to from this zone can include SharedArrayBuffers which may also be referred to from other zones. Adding the memory usage of multiple zones may lead to an over-estimate.