Function libmimalloc_sys::mi_process_info
source ยท pub unsafe extern "C" fn mi_process_info(
elapsed_msecs: *mut usize,
user_msecs: *mut usize,
system_msecs: *mut usize,
current_rss: *mut usize,
peak_rss: *mut usize,
current_commit: *mut usize,
peak_commit: *mut usize,
page_faults: *mut usize,
)
Expand description
Return process information (time and memory usage). All parameters are optional (nullable) out-params:
Parameter | Description |
---|---|
elapsed_msecs | Elapsed wall-clock time of the process in milli-seconds. |
user_msecs | User time in milli-seconds (as the sum over all threads). |
system_msecs | System time in milli-seconds. |
current_rss | Current working set size (touched pages). |
peak_rss | Peak working set size (touched pages). |
current_commit | Current committed memory (backed by the page file). |
peak_commit | Peak committed memory (backed by the page file). |
page_faults | Count of hard page faults. |
The current_rss
is precise on Windows and MacOSX; other systems
estimate this using current_commit
. The commit
is precise on Windows
but estimated on other systems as the amount of read/write accessible
memory reserved by mimalloc.