Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(19)

Side by Side Diff: chrome/common/metrics/metrics_service_base.cc

Issue 12207058: Connect SparseHistogram with the rest of stats system (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/common/metrics/metrics_service_base.h ('k') | chrome/common/startup_metric_utils.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/common/metrics/metrics_service_base.h" 5 #include "chrome/common/metrics/metrics_service_base.h"
6 6
7 #include <cstdlib> 7 #include <cstdlib>
8 8
9 #include "chrome/common/metrics/metrics_log_base.h" 9 #include "chrome/common/metrics/metrics_log_base.h"
10 10
(...skipping 25 matching lines...) Expand all
36 } 36 }
37 37
38 void MetricsServiceBase::RecordDelta( 38 void MetricsServiceBase::RecordDelta(
39 const base::HistogramBase& histogram, 39 const base::HistogramBase& histogram,
40 const base::HistogramSamples& snapshot) { 40 const base::HistogramSamples& snapshot) {
41 log_manager_.current_log()->RecordHistogramDelta(histogram.histogram_name(), 41 log_manager_.current_log()->RecordHistogramDelta(histogram.histogram_name(),
42 snapshot); 42 snapshot);
43 } 43 }
44 44
45 void MetricsServiceBase::InconsistencyDetected( 45 void MetricsServiceBase::InconsistencyDetected(
46 Histogram::Inconsistencies problem) { 46 base::HistogramBase::Inconsistency problem) {
47 UMA_HISTOGRAM_ENUMERATION("Histogram.InconsistenciesBrowser", 47 UMA_HISTOGRAM_ENUMERATION("Histogram.InconsistenciesBrowser",
48 problem, Histogram::NEVER_EXCEEDED_VALUE); 48 problem, base::HistogramBase::NEVER_EXCEEDED_VALUE);
49 } 49 }
50 50
51 void MetricsServiceBase::UniqueInconsistencyDetected( 51 void MetricsServiceBase::UniqueInconsistencyDetected(
52 Histogram::Inconsistencies problem) { 52 base::HistogramBase::Inconsistency problem) {
53 UMA_HISTOGRAM_ENUMERATION("Histogram.InconsistenciesBrowserUnique", 53 UMA_HISTOGRAM_ENUMERATION("Histogram.InconsistenciesBrowserUnique",
54 problem, Histogram::NEVER_EXCEEDED_VALUE); 54 problem, base::HistogramBase::NEVER_EXCEEDED_VALUE);
55 } 55 }
56 56
57 void MetricsServiceBase::InconsistencyDetectedInLoggedCount(int amount) { 57 void MetricsServiceBase::InconsistencyDetectedInLoggedCount(int amount) {
58 UMA_HISTOGRAM_COUNTS("Histogram.InconsistentSnapshotBrowser", 58 UMA_HISTOGRAM_COUNTS("Histogram.InconsistentSnapshotBrowser",
59 std::abs(amount)); 59 std::abs(amount));
60 } 60 }
OLDNEW
« no previous file with comments | « chrome/common/metrics/metrics_service_base.h ('k') | chrome/common/startup_metric_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698