Trait ProfilingAgent

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