| OLD | NEW |
| 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 "components/metrics/metrics_log_base.h" |
| 10 | 10 |
| 11 using base::Histogram; | 11 using base::Histogram; |
| 12 | 12 |
| 13 MetricsServiceBase::MetricsServiceBase() | 13 MetricsServiceBase::MetricsServiceBase() |
| 14 : histogram_snapshot_manager_(this) { | 14 : histogram_snapshot_manager_(this) { |
| 15 } | 15 } |
| 16 | 16 |
| 17 MetricsServiceBase::~MetricsServiceBase() { | 17 MetricsServiceBase::~MetricsServiceBase() { |
| 18 } | 18 } |
| 19 | 19 |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 void MetricsServiceBase::UniqueInconsistencyDetected( | 52 void MetricsServiceBase::UniqueInconsistencyDetected( |
| 53 base::HistogramBase::Inconsistency problem) { | 53 base::HistogramBase::Inconsistency problem) { |
| 54 UMA_HISTOGRAM_ENUMERATION("Histogram.InconsistenciesBrowserUnique", | 54 UMA_HISTOGRAM_ENUMERATION("Histogram.InconsistenciesBrowserUnique", |
| 55 problem, base::HistogramBase::NEVER_EXCEEDED_VALUE); | 55 problem, base::HistogramBase::NEVER_EXCEEDED_VALUE); |
| 56 } | 56 } |
| 57 | 57 |
| 58 void MetricsServiceBase::InconsistencyDetectedInLoggedCount(int amount) { | 58 void MetricsServiceBase::InconsistencyDetectedInLoggedCount(int amount) { |
| 59 UMA_HISTOGRAM_COUNTS("Histogram.InconsistentSnapshotBrowser", | 59 UMA_HISTOGRAM_COUNTS("Histogram.InconsistentSnapshotBrowser", |
| 60 std::abs(amount)); | 60 std::abs(amount)); |
| 61 } | 61 } |
| OLD | NEW |