| 108 | } |
| 109 | double Statistics::GetTotal(std::string const& tag) { return GetTotal(GetHandle(tag)); } |
| 110 | double Statistics::GetMean(size_t handle) { |
| 111 | std::lock_guard<std::mutex> lock(Instance().mutex_); |
| 112 | return Instance().stats_collectors_[handle].Mean(); |
| 113 | } |
| 114 | double Statistics::GetMean(std::string const& tag) { return GetMean(GetHandle(tag)); } |
| 115 | size_t Statistics::GetNumSamples(size_t handle) { |
| 116 | std::lock_guard<std::mutex> lock(Instance().mutex_); |