Skip to main content

JS_ComputeMemoryUsage

Function JS_ComputeMemoryUsage 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn JS_ComputeMemoryUsage( rt: *mut JsRuntime, s: *mut JSMemoryUsage, )
Expand description

JS_ComputeMemoryUsage: fill s with what this runtime occupies.

Every field is measured, by the engine’s own walk (engine::memory::compute). It used to fill two and zero the rest; now the only fields left at zero are the ones this engine genuinely has no equivalent for, and each is commented where it is set below.

§Safety

rt must be a live runtime and s writable.