This class manages a collection of named Statistics objects.
void register_stat(const std::string &name, std::unique_ptr< Statistics > stat)
Registers a tracker for the statistics name.
Tracked()
Default constructor, creates the internal stats::StatisticsCollection.
~Tracked()
Non-virtual destructor. Declared protected, so we don't accidentally try to do a polymorphic delete.
std::shared_ptr< StatisticsCollection > m_Collection
The internal collection. Filled with a new StatisticsCollection in the constructor.
void declare_tag(tag_id_t index, std::string name)
Declares a new tag. This function just forwards all its arguments to the internal StatisticsCollectio...
void declare_stat(stat_id_t index, StatisticMetaData meta)
Declares a new statistics. This function just forwards all its arguments to the internal StatisticsCo...