| 44 | } |
| 45 | |
| 46 | void HistogramRegistry::registerHistogram(Histogram* h) { |
| 47 | if (histograms.find(h->name()) != histograms.end()) { |
| 48 | TraceEvent(SevError, "HistogramDoubleRegistered").detail("group", h->group).detail("op", h->op); |
| 49 | ASSERT(false); |
| 50 | } |
| 51 | histograms.insert(std::pair<std::string, Histogram*>(h->name(), h)); |
| 52 | } |
| 53 | |
| 54 | void HistogramRegistry::unregisterHistogram(Histogram* h) { |
| 55 | std::string name = h->name(); |
no test coverage detected