Struct RenderDocProfiler
pub struct RenderDocProfiler {
attached: bool,
}Expand description
RenderDoc profiler stub.
Integrates with RenderDoc for GPU frame capture and debugging.
Fields§
§attached: boolImplementations§
§impl RenderDocProfiler
impl RenderDocProfiler
pub fn new() -> RenderDocProfiler
pub fn new() -> RenderDocProfiler
Create a new RenderDoc profiler.
In a real implementation, this would use the RenderDoc in-app API.
pub fn is_attached(&self) -> bool
pub fn is_attached(&self) -> bool
Check if RenderDoc is attached to the process.
pub fn get_capture_path(&self) -> Option<String>
pub fn get_capture_path(&self) -> Option<String>
Get RenderDoc capture file path.
pub fn launch_ui(&self) -> Result<(), ProfilerError>
pub fn launch_ui(&self) -> Result<(), ProfilerError>
Launch RenderDoc UI.
Trait Implementations§
§impl Default for RenderDocProfiler
impl Default for RenderDocProfiler
§fn default() -> RenderDocProfiler
fn default() -> RenderDocProfiler
Returns the “default value” for a type. Read more
§impl GpuProfiler for RenderDocProfiler
impl GpuProfiler for RenderDocProfiler
§fn is_available(&self) -> bool
fn is_available(&self) -> bool
Check if the profiler is available and attached.
§fn backend(&self) -> GpuProfilerBackend
fn backend(&self) -> GpuProfilerBackend
Get the profiler backend type.
§fn trigger_capture(&self) -> Result<(), ProfilerError>
fn trigger_capture(&self) -> Result<(), ProfilerError>
Trigger a frame/dispatch capture.
§fn start_capture(&self) -> Result<(), ProfilerError>
fn start_capture(&self) -> Result<(), ProfilerError>
Start a profiler capture session.
§fn end_capture(&self) -> Result<(), ProfilerError>
fn end_capture(&self) -> Result<(), ProfilerError>
End a profiler capture session.
§fn set_thread_name(&self, _name: &str)
fn set_thread_name(&self, _name: &str)
Set a per-thread name for the profiler.
§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.
§fn mark(&self, _name: &str, _color: ProfilerColor)
fn mark(&self, _name: &str, _color: ProfilerColor)
Insert an instantaneous marker.
§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.
§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§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§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
§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
§fn deserialize(
&self,
deserializer: &mut D,
) -> Result<With<T, W>, <D as Fallible>::Error>
fn deserialize( &self, deserializer: &mut D, ) -> Result<With<T, W>, <D as Fallible>::Error>
Deserializes using the given deserializer
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
§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.