pub trait TlProfiledExecutor {
// Required methods
fn profiler(&self) -> Option<&Profiler>;
fn profiler_mut(&mut self) -> Option<&mut Profiler>;
fn enable_profiling(&mut self);
fn disable_profiling(&mut self);
// Provided method
fn get_profile_data(&self) -> Option<&ProfileData> { ... }
}Expand description
Extension trait for profiled execution
Required Methods§
Sourcefn profiler_mut(&mut self) -> Option<&mut Profiler>
fn profiler_mut(&mut self) -> Option<&mut Profiler>
Get mutable access to profiler
Sourcefn enable_profiling(&mut self)
fn enable_profiling(&mut self)
Enable profiling
Sourcefn disable_profiling(&mut self)
fn disable_profiling(&mut self)
Disable profiling
Provided Methods§
Sourcefn get_profile_data(&self) -> Option<&ProfileData>
fn get_profile_data(&self) -> Option<&ProfileData>
Get profiling data