Skip to main content

profile_function_value

Function profile_function_value 

Source
pub fn profile_function_value<F>(
    cx: &mut Cx,
    defining_profile: Symbol,
    organ: Symbol,
    function: Symbol,
    body: F,
) -> Result<Value>
where F: Fn(&mut Cx, Args) -> Result<Value> + Send + Sync + 'static,
Expand description

Wrap body as a callable ProfileFunction runtime value.