Lines Matching refs:Histogram
29 using base::Histogram;
193 // The following log is VERY helpful when folks add some named histogram into
195 // that happens, all we get to see (server side) is a hash of the histogram
196 // name. We can then use this logging to find out what histogram name was
386 // TODO(JAR): A The following should really be part of the histogram class.
388 // this code. If we moved this into the Histogram class, then we could use
391 const Histogram& histogram,
392 const Histogram::SampleSet& snapshot) {
395 snapshot.CheckSize(histogram);
399 OPEN_ELEMENT_FOR_SCOPE("histogram");
401 WriteAttribute("name", CreateBase64Hash(histogram.histogram_name()));
407 for (size_t i = 0; i < histogram.bucket_count(); i++) {
410 WriteIntAttribute("min", histogram.ranges(i));
411 WriteIntAttribute("max", histogram.ranges(i + 1));
485 TransmitAllHistograms(base::Histogram::kNoFlags, true);
489 const base::Histogram& histogram,
490 const base::Histogram::SampleSet& snapshot) {
491 current_log_->RecordHistogramDelta(histogram, snapshot);
495 UMA_HISTOGRAM_ENUMERATION("Histogram.InconsistenciesBrowser",
496 problem, Histogram::NEVER_EXCEEDED_VALUE);
500 UMA_HISTOGRAM_ENUMERATION("Histogram.InconsistenciesBrowserUnique",
501 problem, Histogram::NEVER_EXCEEDED_VALUE);
505 UMA_HISTOGRAM_COUNTS("Histogram.InconsistentSnapshotBrowser",
513 void HistogramSender::TransmitAllHistograms(Histogram::Flags flag_to_set,
522 0 == ((*it)->flags() & Histogram::kUmaTargetedHistogramFlag))
528 void HistogramSender::TransmitHistogram(const Histogram& histogram) {
530 Histogram::SampleSet snapshot;
531 histogram.SnapshotSample(&snapshot);
532 const std::string& histogram_name = histogram.histogram_name();
534 histogram.FindCorruption(snapshot);
539 if (Histogram::BUCKET_ORDER_ERROR & corruption) {
541 CHECK_NE(0, Histogram::RANGE_CHECKSUM_ERROR & corruption);
545 CHECK_EQ(0, Histogram::RANGE_CHECKSUM_ERROR & corruption);
555 return; // We've already seen this corruption for this histogram.
564 Histogram::SampleSet* already_logged;
567 already_logged = &logged_samples_[histogram.histogram_name()];
568 already_logged->Resize(histogram); // Complete initialization.
590 TransmitHistogramDelta(histogram, snapshot);