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 "content/common/child_histogram_message_filter.h" | 5 #include "content/common/child_histogram_message_filter.h" |
6 | 6 |
7 #include <ctype.h> | 7 #include <ctype.h> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 | 80 |
81 Pickle pickle; | 81 Pickle pickle; |
82 histogram.SerializeInfo(&pickle); | 82 histogram.SerializeInfo(&pickle); |
83 snapshot.Serialize(&pickle); | 83 snapshot.Serialize(&pickle); |
84 | 84 |
85 pickled_histograms_.push_back( | 85 pickled_histograms_.push_back( |
86 std::string(static_cast<const char*>(pickle.data()), pickle.size())); | 86 std::string(static_cast<const char*>(pickle.data()), pickle.size())); |
87 } | 87 } |
88 | 88 |
89 void ChildHistogramMessageFilter::InconsistencyDetected( | 89 void ChildHistogramMessageFilter::InconsistencyDetected( |
90 base::Histogram::Inconsistencies problem) { | 90 base::HistogramBase::Inconsistency problem) { |
91 UMA_HISTOGRAM_ENUMERATION("Histogram.InconsistenciesChildProcess", | 91 UMA_HISTOGRAM_ENUMERATION("Histogram.InconsistenciesChildProcess", |
92 problem, base::Histogram::NEVER_EXCEEDED_VALUE); | 92 problem, base::HistogramBase::NEVER_EXCEEDED_VALUE); |
93 } | 93 } |
94 | 94 |
95 void ChildHistogramMessageFilter::UniqueInconsistencyDetected( | 95 void ChildHistogramMessageFilter::UniqueInconsistencyDetected( |
96 base::Histogram::Inconsistencies problem) { | 96 base::HistogramBase::Inconsistency problem) { |
97 UMA_HISTOGRAM_ENUMERATION("Histogram.InconsistenciesChildProcessUnique", | 97 UMA_HISTOGRAM_ENUMERATION("Histogram.InconsistenciesChildProcessUnique", |
98 problem, base::Histogram::NEVER_EXCEEDED_VALUE); | 98 problem, base::HistogramBase::NEVER_EXCEEDED_VALUE); |
99 } | 99 } |
100 | 100 |
101 void ChildHistogramMessageFilter::InconsistencyDetectedInLoggedCount( | 101 void ChildHistogramMessageFilter::InconsistencyDetectedInLoggedCount( |
102 int amount) { | 102 int amount) { |
103 UMA_HISTOGRAM_COUNTS("Histogram.InconsistentSnapshotChildProcess", | 103 UMA_HISTOGRAM_COUNTS("Histogram.InconsistentSnapshotChildProcess", |
104 std::abs(amount)); | 104 std::abs(amount)); |
105 } | 105 } |
106 | 106 |
107 } // namespace content | 107 } // namespace content |
OLD | NEW |