#[non_exhaustive]pub struct Overlap {
pub wall: Duration,
pub task_time: Duration,
pub mean_active_tasks: f64,
pub peak_active_tasks: usize,
pub single_task_tail: Duration,
}Expand description
How a chosen set of independent work spans overlapped in time.
It measures concurrency, not CPU utilization.
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.wall: DurationFirst start to last end, gaps included.
task_time: DurationSum of the spans’ own durations.
mean_active_tasks: f64task_time / wall: the average number of spans running.
peak_active_tasks: usizeThe most spans running at once.
single_task_tail: DurationThe final stretch during which exactly one span was running.
Trait Implementations§
impl StructuralPartialEq for Overlap
Auto Trait Implementations§
impl Freeze for Overlap
impl RefUnwindSafe for Overlap
impl Send for Overlap
impl Sync for Overlap
impl Unpin for Overlap
impl UnsafeUnpin for Overlap
impl UnwindSafe for Overlap
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