pub struct ProfileCollector;
Implementations§
Source§impl ProfileCollector
impl ProfileCollector
pub fn record(_key: &str, _duration_micros: u64)
pub fn get_stats(_key: &str) -> Option<OperationStats>
pub fn get_all_stats() -> HashMap<String, OperationStats>
pub fn clear_all()
pub fn reset_all()
pub fn reset_operation(_key: &str)
pub fn has_data() -> bool
pub fn total_operations() -> u64
pub fn get_summary() -> SummaryStats
pub fn report_stats()
pub fn pause()
pub fn unpause()
pub fn is_paused() -> bool
pub fn reset_pause_state()
Auto Trait Implementations§
impl Freeze for ProfileCollector
impl RefUnwindSafe for ProfileCollector
impl Send for ProfileCollector
impl Sync for ProfileCollector
impl Unpin for ProfileCollector
impl UnwindSafe for ProfileCollector
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