#[repr(C)]pub struct GpuMemEvent {
pub pid: u32,
pub gpu_id: u32,
pub alloc_bytes: u64,
pub free_bytes: u64,
pub total_usage: u64,
pub timestamp_ns: u64,
}Expand description
GPU memory allocation event from BPF uprobe on libcuda.so. Layout must match struct zernel_gpu_mem_event in common.h.
Fields§
§pid: u32§gpu_id: u32§alloc_bytes: u64§free_bytes: u64§total_usage: u64§timestamp_ns: u64Trait Implementations§
Source§impl Clone for GpuMemEvent
impl Clone for GpuMemEvent
Source§fn clone(&self) -> GpuMemEvent
fn clone(&self) -> GpuMemEvent
Returns a duplicate 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 GpuMemEvent
impl Debug for GpuMemEvent
Auto Trait Implementations§
impl Freeze for GpuMemEvent
impl RefUnwindSafe for GpuMemEvent
impl Send for GpuMemEvent
impl Sync for GpuMemEvent
impl Unpin for GpuMemEvent
impl UnwindSafe for GpuMemEvent
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