pub struct RenderDocProfiler { /* private fields */ }Expand description
RenderDoc profiler stub.
Integrates with RenderDoc for GPU frame capture and debugging.
Implementations§
Source§impl RenderDocProfiler
impl RenderDocProfiler
Sourcepub fn new() -> Self
pub fn new() -> Self
Create a new RenderDoc profiler.
In a real implementation, this would use the RenderDoc in-app API.
Sourcepub fn is_attached(&self) -> bool
pub fn is_attached(&self) -> bool
Check if RenderDoc is attached to the process.
Sourcepub fn get_capture_path(&self) -> Option<String>
pub fn get_capture_path(&self) -> Option<String>
Get RenderDoc capture file path.
Sourcepub fn launch_ui(&self) -> Result<(), ProfilerError>
pub fn launch_ui(&self) -> Result<(), ProfilerError>
Launch RenderDoc UI.
Trait Implementations§
Source§impl Default for RenderDocProfiler
impl Default for RenderDocProfiler
Source§impl GpuProfiler for RenderDocProfiler
impl GpuProfiler for RenderDocProfiler
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 trigger_capture(&self) -> Result<(), ProfilerError>
fn trigger_capture(&self) -> Result<(), ProfilerError>
Trigger a frame/dispatch capture.
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 set_thread_name(&self, _name: &str)
fn set_thread_name(&self, _name: &str)
Set a per-thread name for the profiler.
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 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 RenderDocProfiler
impl RefUnwindSafe for RenderDocProfiler
impl Send for RenderDocProfiler
impl Sync for RenderDocProfiler
impl Unpin for RenderDocProfiler
impl UnwindSafe for RenderDocProfiler
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.