diff options
author | daan <daanl@outlook.com> | 2020-09-06 13:53:30 -0700 |
---|---|---|
committer | daan <daanl@outlook.com> | 2020-09-06 13:53:30 -0700 |
commit | b7046934e5af4f130cc9ab49393c0520229917c7 (patch) | |
tree | 13000f2fe9fa9da364cb37dd84c4e45be93bb211 /doc/mimalloc-doc.h | |
parent | 45300ac43d500836fa496167fbf64b84be7b65f3 (diff) | |
parent | d8f8159ddae3b7391c035e02581f22a6bdb4be47 (diff) |
Merge branch 'dev' into dev-slice
Diffstat (limited to 'doc/mimalloc-doc.h')
-rw-r--r-- | doc/mimalloc-doc.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/doc/mimalloc-doc.h b/doc/mimalloc-doc.h index f11a97b..c9cb580 100644 --- a/doc/mimalloc-doc.h +++ b/doc/mimalloc-doc.h @@ -441,6 +441,19 @@ int mi_reserve_huge_os_pages_at(size_t pages, int numa_node, size_t timeout_msec /// Currenty only used on Windows. bool mi_is_redirected(); +/// Return process information (time and memory usage). +/// @param user_msecs Optional. User time in milli-seconds. +/// @param system_msecs Optional. System time in milli-seconds. +/// @param current_rss Optional. Current working set size (touched pages). +/// @param peak_rss Optional. Peak working set size (touched pages). +/// @param current_commit Optional. Current committed memory (backed by the page file). +/// @param peak_commit Optional. Peak committed memory (backed by the page file). +/// @param page_faults Optional. Count of hard page faults. +/// +/// The \a current_rss is precise on Windows and MacOSX; other systems estimate +/// this using \a current_commit. The \a commit is precise on Windows but estimated +/// on other systems as the amount of read/write accessible memory reserved by mimalloc. +void mi_process_info(size_t* user_msecs, size_t* system_msecs, size_t* current_rss, size_t* peak_rss, size_t* current_commit, size_t* peak_commit, size_t* page_faults); /// \} |