#[non_exhaustive]pub struct PointTimings {
pub point: &'static str,
pub budget: Option<Duration>,
pub passes: TimingStats,
pub over_budget: u64,
pub listeners: Vec<ListenerTimings>,
}Expand description
A point’s time (Timings::points): its
passes, its listeners, its budget and how often a pass went over.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.point: &'static strThe point.
budget: Option<Duration>Its budget (PointSpec::budget).
passes: TimingStatsIts passes: each the time of the listeners one emit, queued run or drained ask ran on one thread.
over_budget: u64How many passes went over the budget.
listeners: Vec<ListenerTimings>Its listeners that ran, in the order they run.
Implementations§
Source§impl PointTimings
impl PointTimings
Sourcepub fn new(point: &'static str) -> PointTimings
pub fn new(point: &'static str) -> PointTimings
The point point, no budget, no run.
Sourcepub fn slowest(&self) -> Vec<&ListenerTimings>
pub fn slowest(&self) -> Vec<&ListenerTimings>
Its listeners, the slowest first by their 95th percentile, then by their max.
Trait Implementations§
Source§impl Clone for PointTimings
impl Clone for PointTimings
Source§impl Debug for PointTimings
impl Debug for PointTimings
impl Eq for PointTimings
Source§impl PartialEq for PointTimings
impl PartialEq for PointTimings
impl StructuralPartialEq for PointTimings
Auto Trait Implementations§
impl Forget for PointTimings
impl Freeze for PointTimings
impl Move for PointTimings
impl RefUnwindSafe for PointTimings
impl Send for PointTimings
impl Sync for PointTimings
impl Unpin for PointTimings
impl UnsafeUnpin for PointTimings
impl UnwindSafe for PointTimings
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