pub struct ProfileReport<C: Category> {
pub stats: HashMap<String, OperationStats>,
pub categories: HashMap<String, C>,
pub config: ReportConfig,
}
Fields§
§stats: HashMap<String, OperationStats>
§categories: HashMap<String, C>
§config: ReportConfig
Implementations§
Source§impl<C: Category> ProfileReport<C>
impl<C: Category> ProfileReport<C>
pub fn generate() -> Self
pub fn generate_with_config(_config: ReportConfig) -> Self
pub fn quick_summary(&self) -> String
pub fn summary_stats(&self) -> SummaryStats
pub fn to_string(&self) -> String
pub fn top_operations_by( &self, _metric: SortMetric, _limit: usize, ) -> Vec<(String, OperationStats)>
Trait Implementations§
Auto Trait Implementations§
impl<C> Freeze for ProfileReport<C>
impl<C> RefUnwindSafe for ProfileReport<C>where
C: RefUnwindSafe,
impl<C> Send for ProfileReport<C>
impl<C> Sync for ProfileReport<C>
impl<C> Unpin for ProfileReport<C>where
C: Unpin,
impl<C> UnwindSafe for ProfileReport<C>where
C: UnwindSafe,
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