pub trait ProfilingAgent: Send + Sync + 'static {
    // Required method
    fn register_function(&self, name: &str, addr: *const u8, size: usize);

    // Provided method
    fn register_module(
        &self,
        code: &CodeMemory,
        custom_name: &dyn Fn(usize) -> Option<String>
    ) { ... }
}
Expand description

Common interface for profiling tools.

Required Methods§

source

fn register_function(&self, name: &str, addr: *const u8, size: usize)

Provided Methods§

source

fn register_module( &self, code: &CodeMemory, custom_name: &dyn Fn(usize) -> Option<String> )

Implementors§