pub struct GpuProfiler { /* private fields */ }Expand description
GPU profiler for performance analysis
Implementations§
Source§impl GpuProfiler
impl GpuProfiler
Sourcepub fn stop(&mut self) -> ProfilingResults
pub fn stop(&mut self) -> ProfilingResults
Stop profiling and return results
Sourcepub fn record_kernel(&mut self, name: String, time_ms: f64)
pub fn record_kernel(&mut self, name: String, time_ms: f64)
Record kernel execution time
Sourcepub fn record_memory_transfer(
&mut self,
name: String,
bytes: usize,
time_ms: f64,
)
pub fn record_memory_transfer( &mut self, name: String, bytes: usize, time_ms: f64, )
Record memory transfer
Trait Implementations§
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