Skip to main content

profile_function_with_limit

Function profile_function_with_limit 

Source
pub fn profile_function_with_limit<T>(
    tag: impl Into<String>,
    max_captures: usize,
    function: impl FnOnce() -> T,
) -> T
Expand description

Run a function or closure under a profiling tag with a custom retention limit and return its result.