pub struct TimelineProfiler { /* private fields */ }Expand description
Detailed execution timeline profiler
Implementations§
Source§impl TimelineProfiler
impl TimelineProfiler
pub fn new() -> Self
pub fn start(&mut self)
pub fn record_node_start(&mut self, node_idx: usize, op_type: impl Into<String>)
pub fn record_node_end(&mut self, node_idx: usize)
pub fn traces(&self) -> &[TraceEntry]
Sourcepub fn critical_path_duration(&self) -> Duration
pub fn critical_path_duration(&self) -> Duration
Get critical path (longest chain of dependent nodes)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TimelineProfiler
impl RefUnwindSafe for TimelineProfiler
impl Send for TimelineProfiler
impl Sync for TimelineProfiler
impl Unpin for TimelineProfiler
impl UnwindSafe for TimelineProfiler
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