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

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

Issue 10857067: Add comments to HistogramFlatterner interface and rename a function (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 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
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 23 matching lines...) Expand all
34 DCHECK(log_manager_.current_log()); 34 DCHECK(log_manager_.current_log());
35 histogram_snapshot_manager_.PrepareDeltas(base::Histogram::kNoFlags, true); 35 histogram_snapshot_manager_.PrepareDeltas(base::Histogram::kNoFlags, true);
36 } 36 }
37 37
38 void MetricsServiceBase::RecordDelta( 38 void MetricsServiceBase::RecordDelta(
39 const base::Histogram& histogram, 39 const base::Histogram& histogram,
40 const base::Histogram::SampleSet& snapshot) { 40 const base::Histogram::SampleSet& snapshot) {
41 log_manager_.current_log()->RecordHistogramDelta(histogram, snapshot); 41 log_manager_.current_log()->RecordHistogramDelta(histogram, snapshot);
42 } 42 }
43 43
44 void MetricsServiceBase::InconsistencyDetected(int problem) { 44 void MetricsServiceBase::InconsistencyDetected(
45 Histogram::Inconsistencies problem) {
45 UMA_HISTOGRAM_ENUMERATION("Histogram.InconsistenciesBrowser", 46 UMA_HISTOGRAM_ENUMERATION("Histogram.InconsistenciesBrowser",
46 problem, Histogram::NEVER_EXCEEDED_VALUE); 47 problem, Histogram::NEVER_EXCEEDED_VALUE);
47 } 48 }
48 49
49 void MetricsServiceBase::UniqueInconsistencyDetected(int problem) { 50 void MetricsServiceBase::UniqueInconsistencyDetected(
51 Histogram::Inconsistencies problem) {
50 UMA_HISTOGRAM_ENUMERATION("Histogram.InconsistenciesBrowserUnique", 52 UMA_HISTOGRAM_ENUMERATION("Histogram.InconsistenciesBrowserUnique",
51 problem, Histogram::NEVER_EXCEEDED_VALUE); 53 problem, Histogram::NEVER_EXCEEDED_VALUE);
52 } 54 }
53 55
54 void MetricsServiceBase::SnapshotProblemResolved(int amount) { 56 void MetricsServiceBase::InconsistencyDetectedInLoggedCount(int amount) {
55 UMA_HISTOGRAM_COUNTS("Histogram.InconsistentSnapshotBrowser", 57 UMA_HISTOGRAM_COUNTS("Histogram.InconsistentSnapshotBrowser",
56 std::abs(amount)); 58 std::abs(amount));
57 } 59 }
OLDNEW
« no previous file with comments | « chrome/common/metrics/metrics_service_base.h ('k') | content/common/child_histogram_message_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698