pub struct PathTiming {
pub lines: Vec<usize>,
pub runs: Vec<usize>,
pub sequential: f64,
pub predicted: f64,
pub slowest: Prediction,
}Expand description
The runs that took one path through a function, and their predictions.
Fields§
§lines: Vec<usize>The path: the distinct source lines of its samples, in order. A call on a branch the runs did not take has no sample, so two paths differ in the lines they contain.
runs: Vec<usize>Indices of the runs (in the order given) that took it.
sequential: f64Mean measured and predicted time of those runs.
predicted: f64§slowest: PredictionThe prediction of its slowest measured run, whose levels name the critical path.
Trait Implementations§
Source§impl Clone for PathTiming
impl Clone for PathTiming
Source§fn clone(&self) -> PathTiming
fn clone(&self) -> PathTiming
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PathTiming
impl Debug for PathTiming
Source§impl Default for PathTiming
impl Default for PathTiming
Source§fn default() -> PathTiming
fn default() -> PathTiming
Returns the “default value” for a type. Read more
Source§impl PartialEq for PathTiming
impl PartialEq for PathTiming
impl StructuralPartialEq for PathTiming
Auto Trait Implementations§
impl Freeze for PathTiming
impl RefUnwindSafe for PathTiming
impl Send for PathTiming
impl Sync for PathTiming
impl Unpin for PathTiming
impl UnsafeUnpin for PathTiming
impl UnwindSafe for PathTiming
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