pub struct ProcessInfo {
pub elapsed_msecs: usize,
pub user_msecs: usize,
pub system_msecs: usize,
pub current_rss: usize,
pub peak_rss: usize,
pub current_commit: usize,
pub peak_commit: usize,
pub page_faults: usize,
}Expand description
The time and memory use of the process, from MiMalloc::process_info.
Fields§
§elapsed_msecs: usizeThe wall-clock time in milliseconds since the process started.
user_msecs: usizeThe CPU time in milliseconds that the process spent in user mode.
system_msecs: usizeThe CPU time in milliseconds that the process spent in the kernel.
current_rss: usizeThe current resident set size in bytes.
On Linux, mimalloc cannot read this value, and reports the memory it has committed instead.
peak_rss: usizeThe largest resident set size in bytes that the process has had.
current_commit: usizeThe number of bytes that mimalloc has committed.
peak_commit: usizeThe largest number of bytes that mimalloc has had committed.
page_faults: usizeThe number of page faults that the process has had. On Linux, this is the number of major faults.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ProcessInfo
impl RefUnwindSafe for ProcessInfo
impl Send for ProcessInfo
impl Sync for ProcessInfo
impl Unpin for ProcessInfo
impl UnsafeUnpin for ProcessInfo
impl UnwindSafe for ProcessInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more