Function superluminal_perf::enabled

source ·
pub const fn enabled() -> bool
Expand description

Check if the API is enabled

Examples found in repository?
examples/basic.rs (line 36)
35
36
37
38
39
40
41
fn main() {
    println!("Enabled: {}", superluminal_perf::enabled());

    superluminal_perf::set_current_thread_name("mythread");

    big_fn();
}