pub struct GpuProfiler { /* private fields */ }Expand description
GPU performance profiler
Implementations§
Source§impl GpuProfiler
impl GpuProfiler
Sourcepub fn record_kernel_time(&mut self, kernel_name: &str, time_ms: f64)
pub fn record_kernel_time(&mut self, kernel_name: &str, time_ms: f64)
Record kernel execution time
Sourcepub fn record_memory_transfer(&mut self, size: u64, direction: &str)
pub fn record_memory_transfer(&mut self, size: u64, direction: &str)
Record memory transfer
Sourcepub fn record_utilization(&mut self, device_id: u32, utilization: f64)
pub fn record_utilization(&mut self, device_id: u32, utilization: f64)
Record device utilization
Sourcepub fn get_kernel_stats(&self) -> HashMap<String, KernelStats>
pub fn get_kernel_stats(&self) -> HashMap<String, KernelStats>
Get kernel statistics
Sourcepub fn get_memory_transfer_stats(&self) -> MemoryTransferStats
pub fn get_memory_transfer_stats(&self) -> MemoryTransferStats
Get memory transfer statistics
Trait Implementations§
Source§impl Debug for GpuProfiler
impl Debug for GpuProfiler
Auto Trait Implementations§
impl Freeze for GpuProfiler
impl RefUnwindSafe for GpuProfiler
impl Send for GpuProfiler
impl Sync for GpuProfiler
impl Unpin for GpuProfiler
impl UnwindSafe for GpuProfiler
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more