pub fn profile_function_with_limit<T>(
tag: impl Into<String>,
max_captures: usize,
function: impl FnOnce() -> T,
) -> TExpand description
Run a function or closure under a profiling tag with a custom retention limit and return its result.