#[unsafe(no_mangle)]pub unsafe extern "C" fn JS_DumpMemoryUsage(
fp: *mut c_void,
s: *const JSMemoryUsage,
rt: *mut JsRuntime,
)Expand description
JS_DumpMemoryUsage: print the report to fp.
The same table qjs -d prints, rendered by the same function
(engine::memory::dump), so a C host and the CLI cannot drift apart. The reference’s
JS_DumpMemoryUsage(stdout, &stats, rt) needs rt for its per-class census; the caller
passes the one it computed s from.
§Safety
fp must be a writable FILE * and s a filled JSMemoryUsage.