ark::perf::TracerHost

Defined in header “ark/perf/tracer.hh”.


The ’trace host’ singleton. All threads register themselves with this singleton, and the user can query it periodically to get a list of all the completed traces.

Methods

  • TracerHost()
    Constructor. Initializes the implementation.

  • ~TracerHost()
    Destructor. Defined internally to clear impl_ safely from within the source.

  • std::vector< TraceTimingPackPtr > flush()
    Called to query all of the registered threads to fetch their trace packs.

  • TracerHostImplementation & impl()
    Called to return the implementation of this host.

  • void enable_profiling()
    Set to enable profiling if profiling is off, the traces still execute, but information is not collected anywhere.

  • bool profiling_enabled()
    Returns true if profiling is enabled, false otherwise.