pub trait ProfilingExt<R: Runtime> {
// Required methods
fn start_cpu_profile(&self) -> Result<()>;
fn start_cpu_profile_with_options(
&self,
options: StartOptions,
) -> Result<()>;
fn stop_cpu_profile(&self) -> Result<ProfileResult>;
fn is_profiling(&self) -> Result<bool>;
}Expand description
Extension trait for CPU profiling on Tauri app handles and windows.
Required Methods§
Sourcefn start_cpu_profile(&self) -> Result<()>
fn start_cpu_profile(&self) -> Result<()>
Start CPU profiling with default options.
Sourcefn start_cpu_profile_with_options(&self, options: StartOptions) -> Result<()>
fn start_cpu_profile_with_options(&self, options: StartOptions) -> Result<()>
Start CPU profiling with custom options.
Sourcefn stop_cpu_profile(&self) -> Result<ProfileResult>
fn stop_cpu_profile(&self) -> Result<ProfileResult>
Stop profiling and generate a flamegraph.
Sourcefn is_profiling(&self) -> Result<bool>
fn is_profiling(&self) -> Result<bool>
Check if profiling is currently active.