pub struct ProfileCollector;
Implementations§
Source§impl ProfileCollector
impl ProfileCollector
pub fn record(_operation: &str, _duration_micros: u64)
pub fn record_with_category<C: Category>( _operation: &str, _category: C, _duration_micros: u64, )
pub fn get_stats(_operation: &str) -> Option<OperationStats>
pub fn get_all_stats() -> HashMap<String, OperationStats>
pub fn get_category<C: Category>(_operation: &str) -> Option<C>
pub fn clear_all()
pub fn reset_all()
pub fn reset_operation(_operation: &str)
pub fn has_data() -> bool
pub fn total_operations() -> u64
pub fn get_summary() -> SummaryStats
pub fn get_stats_by_category<C: Category>() -> HashMap<C, Vec<(String, OperationStats)>>
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