pub struct NvtxProfiler { /* private fields */ }Expand description
NVTX (NVIDIA Tools Extension) profiler stub.
When the real NVTX library is available, this integrates with Nsight Systems and Nsight Compute.
Implementations§
Source§impl NvtxProfiler
impl NvtxProfiler
Sourcepub fn new() -> Self
pub fn new() -> Self
Create a new NVTX profiler.
In a real implementation, this would check for libnvtx availability.
Sourcepub fn is_nvtx_loaded(&self) -> bool
pub fn is_nvtx_loaded(&self) -> bool
Check if NVTX library is loaded.
Trait Implementations§
Source§impl Default for NvtxProfiler
impl Default for NvtxProfiler
Source§impl GpuProfiler for NvtxProfiler
impl GpuProfiler for NvtxProfiler
Source§fn is_available(&self) -> bool
fn is_available(&self) -> bool
Check if the profiler is available and attached.
Source§fn backend(&self) -> GpuProfilerBackend
fn backend(&self) -> GpuProfilerBackend
Get the profiler backend type.
Source§fn start_capture(&self) -> Result<(), ProfilerError>
fn start_capture(&self) -> Result<(), ProfilerError>
Start a profiler capture session.
Source§fn end_capture(&self) -> Result<(), ProfilerError>
fn end_capture(&self) -> Result<(), ProfilerError>
End a profiler capture session.
Source§fn push_range(&self, name: &str, _color: ProfilerColor) -> ProfilerRange
fn push_range(&self, name: &str, _color: ProfilerColor) -> ProfilerRange
Push a named range onto the profiler stack.
Source§fn mark(&self, _name: &str, _color: ProfilerColor)
fn mark(&self, _name: &str, _color: ProfilerColor)
Insert an instantaneous marker.
Source§fn set_thread_name(&self, _name: &str)
fn set_thread_name(&self, _name: &str)
Set a per-thread name for the profiler.
Source§fn trigger_capture(&self) -> Result<(), ProfilerError>
fn trigger_capture(&self) -> Result<(), ProfilerError>
Trigger a frame/dispatch capture.
Source§fn register_allocation(&self, _ptr: u64, _size: usize, _name: &str)
fn register_allocation(&self, _ptr: u64, _size: usize, _name: &str)
Register a GPU memory allocation.
Source§fn unregister_allocation(&self, _ptr: u64)
fn unregister_allocation(&self, _ptr: u64)
Unregister a GPU memory allocation.
Auto Trait Implementations§
impl !Freeze for NvtxProfiler
impl RefUnwindSafe for NvtxProfiler
impl Send for NvtxProfiler
impl Sync for NvtxProfiler
impl Unpin for NvtxProfiler
impl UnwindSafe for NvtxProfiler
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Gets the layout of the type.