Skip to main content

mi_stats_get_json

Function mi_stats_get_json 

Source
pub unsafe extern "C" fn mi_stats_get_json(
    buf_size: usize,
    buf: *mut c_char,
) -> *mut c_char
Expand description

Get the statistics for the current subprocess aggregated over all its heaps as JSON.

Returns pointer to the buffer or NULL on failure. Use mi_free() to free the buffer if the buf parameter was NULL.