13.4. 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.4.1. Context profiler control

profiler_boost::disable_profiler(ctx: Context)

Disables the profiler for the given context.

Arguments
profiler_boost::enable_profiler(ctx: Context)

Enables the profiler for the given context.

Arguments