pub const fn enabled() -> bool
Check if the API is enabled
35 36 37 38 39 40 41
fn main() { println!("Enabled: {}", superluminal_perf::enabled()); superluminal_perf::set_current_thread_name("mythread"); big_fn(); }