pub struct RuntimeProfiler { /* private fields */ }
Expand description
Runtime profiler for tracking WASM runtime performance
Implementations§
Source§impl RuntimeProfiler
impl RuntimeProfiler
pub fn new() -> Self
pub fn enable(&mut self)
pub fn disable(&mut self)
pub fn is_enabled(&self) -> bool
pub fn start_operation( &self, operation_type: OperationType, name: &str, ) -> OperationTimer
pub fn end_operation( &self, timer: OperationTimer, metadata: HashMap<String, String>, )
pub fn get_events(&self) -> Vec<OperationEvent>
pub fn get_stats(&self) -> HashMap<OperationType, OperationStats>
pub fn get_total_runtime(&self) -> Duration
pub fn print_summary(&self)
pub fn export_trace(&self, path: &str) -> Result<(), CudaRustError>
pub fn analyze_bottlenecks(&self) -> BottleneckAnalysis
pub fn clear(&self)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RuntimeProfiler
impl RefUnwindSafe for RuntimeProfiler
impl Send for RuntimeProfiler
impl Sync for RuntimeProfiler
impl Unpin for RuntimeProfiler
impl UnwindSafe for RuntimeProfiler
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