33 #ifndef EMANEUTILSSTATISTICHISTOGRAMTABLE_HEADER_ 34 #define EMANEUTILSSTATISTICHISTOGRAMTABLE_HEADER_ 52 template<
typename Key,
typename Counter = std::
size_t>
68 const std::string & sTableName,
70 const std::string & sDescription =
"");
80 void increment(
const Key & key, Counter amount = 1);
83 std::unordered_map<Key,Counter> umap_;
92 #endif // EMANEUTILSSTATISTICHISTOGRAMTABLE_HEADER_
The StatisticRegistrar allows NEM layers to register statistics and statistic tables. Statistics and Statistic tables are owned by the emulator framework and a borrowed reference is returned to the registering NEM layer.
std::vector< std::string > StatisticTableLabels
StatisticHistogramTable(StatisticRegistrar ®istrar, const std::string &sTableName, const StatisticTableLabels &labels, const std::string &sDescription="")
void increment(const Key &key, Counter amount=1)
Utility class to make a two column statistic table where the first column is the table key and the se...