fidl_fuchsia_memory_sampler

Trait SamplerProxyInterface

Source
pub trait SamplerProxyInterface: Send + Sync {
    // Required methods
    fn record_allocation(
        &self,
        address: u64,
        stack_trace: &StackTrace,
        size: u64,
    ) -> Result<(), Error>;
    fn record_deallocation(
        &self,
        address: u64,
        stack_trace: &StackTrace,
    ) -> Result<(), Error>;
    fn set_process_info(
        &self,
        payload: &SamplerSetProcessInfoRequest,
    ) -> Result<(), Error>;
}

Required Methods§

Source

fn record_allocation( &self, address: u64, stack_trace: &StackTrace, size: u64, ) -> Result<(), Error>

Source

fn record_deallocation( &self, address: u64, stack_trace: &StackTrace, ) -> Result<(), Error>

Source

fn set_process_info( &self, payload: &SamplerSetProcessInfoRequest, ) -> Result<(), Error>

Implementors§