15 #ifndef CORE_UTIL_TIMING_AGGREGATOR_H_
16 #define CORE_UTIL_TIMING_AGGREGATOR_H_
35 void AddEntry(
const std::string& key, int64_t value) {
37 std::vector<int64_t> data;
38 data.push_back(value);
55 std::map<std::string, std::vector<int64_t>>
timings_;
66 os <<
"\033[1mTotal execution time per operation\033[0m" << std::endl;
68 os << timing.first <<
": "
69 << std::accumulate(timing.second.begin(), timing.second.end(), 0)
73 os <<
"No statistics were gathered!" << std::endl;
79 #endif // CORE_UTIL_TIMING_AGGREGATOR_H_