13.3. Profiler cross-context helpers

The PROFILER_BOOST module extends profiling with high-level macros for scoped timing (profile_block), function-level profiling annotations, and formatted output of profiling results.

See also Instrumenting profiler for the core profiling infrastructure.

All functions and symbols are in “profiler_boost” module, use require to get access to it.

require daslib/profiler_boost

13.3.1. Context profiler control

disable_profiler(ctx: Context)

Disables the profiler for the given context.

Arguments:
disable_profiler_log(ctx: Context)

Disables the profiler log for the given context.

Arguments:
enable_profiler(ctx: Context)

Enables the profiler for the given context.

Arguments:
enable_profiler_log(ctx: Context)

Enables the profiler log for the given context.

Arguments: