pub trait ProfilingContextExt: ContextReportExt {
// Provided methods
fn print_execution_statistics(&mut self, include_profiling_data: bool) { ... }
fn write_profiling_data(&mut self) { ... }
}Expand description
Trait extension for Context providing profiling capabilities.
Provided Methods§
Sourcefn print_execution_statistics(&mut self, include_profiling_data: bool)
fn print_execution_statistics(&mut self, include_profiling_data: bool)
Prints the execution statistics for this context to the console.
If include_profiling_data is true, also prints the global profiling data
(spans, counts, and computed statistics).
Sourcefn write_profiling_data(&mut self)
fn write_profiling_data(&mut self)
Writes the execution statistics for the context and all profiling data to a JSON file.
§Panics
Panics if the profiling data cannot be written to the configured output file.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.