Skip to main content

TlProfiledExecutor

Trait TlProfiledExecutor 

Source
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§

Source

fn profiler(&self) -> Option<&Profiler>

Get the current profiler

Source

fn profiler_mut(&mut self) -> Option<&mut Profiler>

Get mutable access to profiler

Source

fn enable_profiling(&mut self)

Enable profiling

Source

fn disable_profiling(&mut self)

Disable profiling

Provided Methods§

Source

fn get_profile_data(&self) -> Option<&ProfileData>

Get profiling data

Implementors§