Home | History | Annotate | Download | only in metrics

Lines Matching refs:histogram

11 #include "base/metrics/histogram.h"
19 // Initialize histogram statistics gathering system.
42 HistogramBase* histogram) {
45 return histogram;
53 histogram_to_return = histogram;
55 const std::string& name = histogram->histogram_name();
56 uint64_t name_hash = histogram->name_hash();
59 (*histograms_)[name_hash] = histogram;
60 // If there are callbacks for this histogram, we set the kCallbackExists
65 histogram->SetFlags(HistogramBase::kCallbackExists);
67 histogram->ClearFlags(HistogramBase::kCallbackExists);
69 histogram_to_return = histogram;
70 } else if (histogram == it->second) {
71 // The histogram was registered before.
72 histogram_to_return = histogram;
74 // We already have one histogram with this name.
75 DCHECK_EQ(histogram->histogram_name(),
78 histogram_to_delete = histogram;
135 for (const HistogramBase* histogram : snapshot) {
136 histogram->WriteHTMLGraph(output);
153 for (const HistogramBase* histogram : snapshot) {
154 histogram->WriteAscii(output);
175 for (const HistogramBase* histogram : snapshot) {
181 histogram->WriteJSON(&json);
267 // We also clear the flag from the histogram (if it exists).