Struct nvml_wrapper::struct_wrappers::device::Utilization
source · pub struct Utilization {
pub gpu: u32,
pub memory: u32,
}
Expand description
Utilization information for a device. Each sample period may be between 1 second and 1/6 second, depending on the product being queried.
Fields§
§gpu: u32
Percent of time over the past sample period during which one or more kernels was executing on the GPU.
memory: u32
Percent of time over the past sample period during which global (device) memory was being read or written to.
Trait Implementations§
source§impl Clone for Utilization
impl Clone for Utilization
source§fn clone(&self) -> Utilization
fn clone(&self) -> Utilization
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for Utilization
impl Debug for Utilization
source§impl From<nvmlUtilization_st> for Utilization
impl From<nvmlUtilization_st> for Utilization
source§fn from(struct_: nvmlUtilization_t) -> Self
fn from(struct_: nvmlUtilization_t) -> Self
Converts to this type from the input type.
source§impl Hash for Utilization
impl Hash for Utilization
source§impl PartialEq for Utilization
impl PartialEq for Utilization
source§fn eq(&self, other: &Utilization) -> bool
fn eq(&self, other: &Utilization) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for Utilization
impl StructuralPartialEq for Utilization
Auto Trait Implementations§
impl RefUnwindSafe for Utilization
impl Send for Utilization
impl Sync for Utilization
impl Unpin for Utilization
impl UnwindSafe for Utilization
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