Function bcc::perf_event::init_perf_map

source ·
pub fn init_perf_map<F>(table: Table, cb: F) -> Result<PerfMap, BccError>where
    F: Fn() -> Box<dyn FnMut(&[u8]) + Send>,
👎Deprecated since 0.0.30: Please use PerfMapBuilder to create a new PerfMap instead
Expand description

Convenience function to initialize a PerfMap without using the builder pattern. Will be deprecated in a future release.