pub struct Profiler { /* private fields */ }Implementations§
Source§impl Profiler
impl Profiler
pub fn new() -> Self
pub fn start_profiling(&mut self)
pub fn stop_profiling(&mut self) -> ProfilingMetrics
pub fn record_function_call( &mut self, function_name: String, duration: Duration, )
pub fn record_instruction(&mut self)
pub fn record_memory_usage(&mut self, usage: usize)
pub fn record_gc_cycle(&mut self)
pub fn get_function_timings(&self) -> &HashMap<String, Duration>
pub fn get_memory_snapshots(&self) -> &Vec<(Instant, usize)>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Profiler
impl RefUnwindSafe for Profiler
impl Send for Profiler
impl Sync for Profiler
impl Unpin for Profiler
impl UnwindSafe for Profiler
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