pub struct ProfilerGuard { /* private fields */ }Expand description
RAII guard that calls profiler_start on construction and
profiler_stop on drop.
§Example
let _guard = ProfilerGuard::new()?;
// profiling active here …
// dropped → profiler_stop called automaticallyImplementations§
Source§impl ProfilerGuard
impl ProfilerGuard
Sourcepub fn new() -> CudaRtResult<Self>
pub fn new() -> CudaRtResult<Self>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ProfilerGuard
impl RefUnwindSafe for ProfilerGuard
impl Send for ProfilerGuard
impl Sync for ProfilerGuard
impl Unpin for ProfilerGuard
impl UnsafeUnpin for ProfilerGuard
impl UnwindSafe for ProfilerGuard
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