MCPcopy Create free account
hub / github.com/apple/foundationdb / registerHistogram

Method registerHistogram

flow/Histogram.cpp:46–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44}
45
46void 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
54void HistogramRegistry::unregisterHistogram(Histogram* h) {
55 std::string name = h->name();

Callers 1

getHistogramMethod · 0.80

Calls 6

TraceEventClass · 0.85
detailMethod · 0.80
nameMethod · 0.65
findMethod · 0.45
endMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected