C++ Reference: class StatsGroup

This documentation is automatically generated.

Base class to print a nice summary of a group of statistics.
Method
LookupOrCreateTimeDistribution

Return type: TimeDistribution*

Arguments: std::string name

Returns and if needed creates and registers a TimeDistribution with the given name. Note that this involve a map lookup and his thus slower than directly accessing a TimeDistribution variable.

Register

Return type: void

Arguments: Stat* stat

Registers a Stat, which will appear in the std::string returned by StatString(). The Stat object must live as long as this StatsGroup.

Reset

Return type: void

Calls Reset() on all the statistics registered with this group.

SetPrintOrder

Return type: void

Arguments: PrintOrder print_order

Changes the print ordering (will affect the order in which the stats registered with this group are printed via StatString()).

StatsGroup

Return type: explicit

Arguments: const std::string& name

~StatsGroup

StatString

Return type: std::string

Returns this group name, followed by one line per Stat registered with this group (this includes the ones created by LookupOrCreateTimeDistribution()). Note that only the stats WorthPrinting() are printed.

Send feedback about...