Spicy
Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
hilti::util::timing::detail::Manager Class Reference

#include <timing.h>

Static Public Member Functions

static void summary (std::ostream &out)
 
static std::shared_ptr< Managersingleton ()
 

Protected Member Functions

void register_ (Ledger *ledger)
 
void unregister (Ledger *ledger)
 
LedgernewLedger (const std::string &name)
 

Protected Attributes

friend Collector
 
friend Ledger
 

Detailed Description

Singleton object managing all timer state.

Member Function Documentation

◆ singleton()

std::shared_ptr< Manager > Manager::singleton ( )
static

Returns a pointer to a global singleon manager instance. This returns a shared_ptr so that ledgers can store that to ensure the global singleton doesn't get destroyed at exit before they go away, too.

◆ summary()

void Manager::summary ( std::ostream &  out)
static

Renders a summary of execution statistics for all currently existing Ledger objects.


The documentation for this class was generated from the following files: