pub struct ProfileReport {
pub entries: Vec<ProfileEntry>,
}Expand description
Aggregated profiling report for multiple experiments.
Fields§
§entries: Vec<ProfileEntry>Per-experiment profiling entries.
Implementations§
Source§impl ProfileReport
impl ProfileReport
Sourcepub fn total_time_ns(&self) -> u128
pub fn total_time_ns(&self) -> u128
Cumulative total time across all entries.
Sourcepub fn slowest(&self) -> Option<&ProfileEntry>
pub fn slowest(&self) -> Option<&ProfileEntry>
Returns the slowest entry.
Sourcepub fn fastest(&self) -> Option<&ProfileEntry>
pub fn fastest(&self) -> Option<&ProfileEntry>
Returns the fastest entry.
Sourcepub fn to_markdown(&self) -> String
pub fn to_markdown(&self) -> String
Exports the report as Markdown.
Sourcepub fn filter_domain(&self, domain: &str) -> Vec<&ProfileEntry>
pub fn filter_domain(&self, domain: &str) -> Vec<&ProfileEntry>
Filters entries matching the given domain.
Trait Implementations§
Source§impl Clone for ProfileReport
impl Clone for ProfileReport
Source§fn clone(&self) -> ProfileReport
fn clone(&self) -> ProfileReport
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ProfileReport
impl RefUnwindSafe for ProfileReport
impl Send for ProfileReport
impl Sync for ProfileReport
impl Unpin for ProfileReport
impl UnsafeUnpin for ProfileReport
impl UnwindSafe for ProfileReport
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