pub struct Profiler { /* private fields */ }Expand description
Profiler for collecting execution statistics
Implementations§
Source§impl Profiler
impl Profiler
Sourcepub fn is_enabled(&self) -> bool
pub fn is_enabled(&self) -> bool
Check if profiling is enabled
Sourcepub fn record_task(
&self,
task_id: TaskId,
name: Option<String>,
start_time: Instant,
duration: Duration,
worker_id: usize,
num_dependencies: usize,
)
pub fn record_task( &self, task_id: TaskId, name: Option<String>, start_time: Instant, duration: Duration, worker_id: usize, num_dependencies: usize, )
Record task execution
Sourcepub fn get_profile(&self) -> Option<ExecutionProfile>
pub fn get_profile(&self) -> Option<ExecutionProfile>
Get the execution profile
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Profiler
impl RefUnwindSafe for Profiler
impl Send for Profiler
impl Sync for Profiler
impl Unpin for Profiler
impl UnsafeUnpin for Profiler
impl UnwindSafe for Profiler
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