Struct nix::sys::resource::Usage

source ·
#[repr(transparent)]
pub struct Usage(_);
Available on crate feature resource only.
Expand description

Output of getrusage with information about resource usage. Some of the fields may be unused in some platforms, and will be always zeroed out. See their manuals for details.

Implementations§

Total amount of time spent executing in user mode.

Total amount of time spent executing in kernel mode.

The resident set size at its peak, in kilobytes.

Integral value expressed in kilobytes times ticks of execution indicating the amount of text memory shared with other processes.

Integral value expressed in kilobytes times ticks of execution indicating the amount of unshared memory used by data.

Integral value expressed in kilobytes times ticks of execution indicating the amount of unshared memory used for stack space.

Number of page faults that were served without resorting to I/O, with pages that have been allocated previously by the kernel.

Number of page faults that were served through I/O (i.e. swap).

Number of times all of the memory was fully swapped out.

Number of times a read was done from a block device.

Number of times a write was done to a block device.

Number of IPC messages sent.

Number of IPC messages received.

Number of signals received.

Number of times a context switch was voluntarily invoked.

Number of times a context switch was imposed by the kernel (usually due to time slice expiring or preemption by a higher priority process).

Trait Implementations§

Converts this type into a mutable reference of the (usually inferred) input type.
Converts this type into a shared reference of the (usually inferred) input type.
Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Feeds this value into the given Hasher. Read more
Feeds a slice of this type into the given Hasher. Read more
This method tests for self and other values to be equal, and is used by ==.
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.