Skip to main content

set_enabled

Function set_enabled 

Source
pub fn set_enabled(on: bool)
Expand description

Enable or disable perf counters programmatically. Use this from profiling tools, integration tests, or the sui perf subcommand that wants counters even when SUI_EVAL_PERF=1 isn’t set in the environment. Production code paths don’t call this.