Struct nvml_wrapper::struct_wrappers::device::AccountingStats
source · [−]pub struct AccountingStats {
pub gpu_utilization: Option<u32>,
pub is_running: bool,
pub max_memory_usage: Option<u64>,
pub memory_utilization: Option<u32>,
pub start_time: u64,
pub time: u64,
}Expand description
Accounting statistics for a process.
There is a field: unsigned int reserved[5] present on the C struct that this wraps
that NVIDIA says is “reserved for future use.” If it ever gets used in the future,
an equivalent wrapping field will have to be added to this struct.
Fields
gpu_utilization: Option<u32>Percent of time over the process’s lifetime during which one or more kernels was
executing on the GPU. This is just like what is returned by
Device.utilization_rates() except it is for the lifetime of a process (not just
the last sample period).
It will be None if Device.utilization_rates() is not supported.
is_running: boolWhether the process is running.
max_memory_usage: Option<u64>Max total memory in bytes that was ever allocated by the process.
It will be None if ProcessInfo.used_gpu_memory is not supported.
memory_utilization: Option<u32>Percent of time over the process’s lifetime during which global (device) memory was being read from or written to.
It will be None if Device.utilization_rates() is not supported.
start_time: u64CPU timestamp in usec representing the start time for the process.
time: u64Amount of time in ms during which the compute context was active. This will be zero if the process is not terminated.
Trait Implementations
sourceimpl Clone for AccountingStats
impl Clone for AccountingStats
sourcefn clone(&self) -> AccountingStats
fn clone(&self) -> AccountingStats
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for AccountingStats
impl Debug for AccountingStats
sourceimpl From<nvmlAccountingStats_st> for AccountingStats
impl From<nvmlAccountingStats_st> for AccountingStats
sourcefn from(struct_: nvmlAccountingStats_t) -> Self
fn from(struct_: nvmlAccountingStats_t) -> Self
Converts to this type from the input type.
sourceimpl Hash for AccountingStats
impl Hash for AccountingStats
sourceimpl PartialEq<AccountingStats> for AccountingStats
impl PartialEq<AccountingStats> for AccountingStats
sourcefn eq(&self, other: &AccountingStats) -> bool
fn eq(&self, other: &AccountingStats) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &AccountingStats) -> bool
fn ne(&self, other: &AccountingStats) -> bool
This method tests for !=.
impl Eq for AccountingStats
impl StructuralEq for AccountingStats
impl StructuralPartialEq for AccountingStats
Auto Trait Implementations
impl RefUnwindSafe for AccountingStats
impl Send for AccountingStats
impl Sync for AccountingStats
impl Unpin for AccountingStats
impl UnwindSafe for AccountingStats
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more