pub struct NullProfiler;Expand description
Null profiler implementation (no-op).
Trait Implementations§
Source§impl GpuProfiler for NullProfiler
impl GpuProfiler for NullProfiler
Source§fn backend(&self) -> GpuProfilerBackend
fn backend(&self) -> GpuProfilerBackend
Get the profiler backend type.
Source§fn is_available(&self) -> bool
fn is_available(&self) -> bool
Check if the profiler is available and attached.
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 trigger_capture(&self) -> Result<(), ProfilerError>
fn trigger_capture(&self) -> Result<(), ProfilerError>
Trigger a frame/dispatch capture.
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 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 NullProfiler
impl RefUnwindSafe for NullProfiler
impl Send for NullProfiler
impl Sync for NullProfiler
impl Unpin for NullProfiler
impl UnwindSafe for NullProfiler
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.