Function bench_enabled

Source
pub fn bench_enabled() -> bool
Expand description

Whether benchmark recording is enabled through the environment.

Primary AILLOLI_UI_BENCH takes precedence over OCTAVUI_BENCH, then UI_BENCH. Only 1 and case-insensitive true enable recording; whitespace is not trimmed.

ยงExamples

let enabled: bool = ailloli_ui_bench::bench_enabled();
let _ = enabled;