Skip to main content

init

Function init 

Source
pub fn init()
Expand description

Check the env var and, if set, enable counters. Called on every top-level eval(). Deliberately one-way: if SUI_EVAL_PERF is NOT set we leave the flag as-is rather than clearing it, so that a prior set_enabled(true) (from a profiling tool or integration test) survives the next eval() call.