#[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.
Two fields are real (the live box count and its bytes); the rest are zero, because the engine does not account for them separately. See the module docs for why zero rather than a plausible number.
ยงSafety
rt must be a live runtime and s writable.