pub struct KernelSpanGuard {}Expand description
RAII guard that enters a kernel-launch tracing span and exits on drop.
When the tracing feature is disabled this struct is zero-sized.
§Usage
use oxicuda_launch::trace::KernelSpanGuard;
let _guard = KernelSpanGuard::enter("vector_add", (4u32, 1u32, 1u32), (256u32, 1u32, 1u32));
// Span active here — dropped at end of scope.Implementations§
Auto Trait Implementations§
impl Freeze for KernelSpanGuard
impl RefUnwindSafe for KernelSpanGuard
impl Send for KernelSpanGuard
impl Sync for KernelSpanGuard
impl Unpin for KernelSpanGuard
impl UnsafeUnpin for KernelSpanGuard
impl UnwindSafe for KernelSpanGuard
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