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

Method unregisterHistogram

flow/Histogram.cpp:54–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54void HistogramRegistry::unregisterHistogram(Histogram* h) {
55 std::string name = h->name();
56 if (histograms.find(name) == histograms.end()) {
57 TraceEvent(SevError, "HistogramNotRegistered").detail("group", h->group).detail("op", h->op);
58 }
59 int count = histograms.erase(name);
60 ASSERT(count == 1);
61}
62
63Histogram* HistogramRegistry::lookupHistogram(std::string const& name) {
64 auto h = histograms.find(name);

Callers 1

~HistogramMethod · 0.80

Calls 6

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

Tested by

no test coverage detected