Lines Matching defs:histogram
14 #include "base/metrics/histogram.h"
24 // Initialize histogram statistics gathering system.
41 // The starting location could point to a persistent histogram when such
45 // This operator will continue to skip until a non-persistent histogram
110 HistogramBase* histogram) {
117 ANNOTATE_LEAKING_OBJECT_PTR(histogram); // see crbug.com/79322
118 return histogram;
126 histogram_to_return = histogram;
128 const std::string& name = histogram->histogram_name();
131 // The StringKey references the name within |histogram| rather than
133 (*histograms_)[name] = histogram;
134 ANNOTATE_LEAKING_OBJECT_PTR(histogram); // see crbug.com/79322
135 // If there are callbacks for this histogram, we set the kCallbackExists
140 histogram->SetFlags(HistogramBase::kCallbackExists);
142 histogram->ClearFlags(HistogramBase::kCallbackExists);
144 histogram_to_return = histogram;
145 } else if (histogram == it->second) {
146 // The histogram was registered before.
147 histogram_to_return = histogram;
149 // We already have one histogram with this name.
150 DCHECK_EQ(histogram->histogram_name(),
153 histogram_to_delete = histogram;
214 for (const HistogramBase* histogram : snapshot) {
215 histogram->WriteHTMLGraph(output);
233 for (const HistogramBase* histogram : snapshot) {
234 histogram->WriteAscii(output);
255 for (const HistogramBase* histogram : snapshot) {
261 histogram->WriteJSON(&json);
395 // We also clear the flag from the histogram (if it exists).