pub struct ProfilerBuilder<C: Category = DefaultCategory> { /* private fields */ }
Expand description
Builder for creating configured profiler instances
Implementations§
Source§impl<C: Category> ProfilerBuilder<C>
impl<C: Category> ProfilerBuilder<C>
Sourcepub fn with_percentiles(self, include: bool) -> Self
pub fn with_percentiles(self, include: bool) -> Self
Set whether to include percentiles in reports
Sourcepub fn sort_by_time(self, sort: bool) -> Self
pub fn sort_by_time(self, sort: bool) -> Self
Set whether to sort operations by time in reports
Sourcepub fn min_samples(self, min: u64) -> Self
pub fn min_samples(self, min: u64) -> Self
Set minimum number of samples required for an operation to appear in reports
Sourcepub fn group_by_category(self, group: bool) -> Self
pub fn group_by_category(self, group: bool) -> Self
Set whether to group operations by category in reports
Sourcepub fn time_format(self, format: TimeFormat) -> Self
pub fn time_format(self, format: TimeFormat) -> Self
Set the time format for reports
Trait Implementations§
Auto Trait Implementations§
impl<C> Freeze for ProfilerBuilder<C>
impl<C> RefUnwindSafe for ProfilerBuilder<C>where
C: RefUnwindSafe,
impl<C> Send for ProfilerBuilder<C>
impl<C> Sync for ProfilerBuilder<C>
impl<C> Unpin for ProfilerBuilder<C>where
C: Unpin,
impl<C> UnwindSafe for ProfilerBuilder<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