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

Side by Side Diff: content/common/child_histogram_message_filter.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
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 "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
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
OLDNEW
« no previous file with comments | « content/common/child_histogram_message_filter.h ('k') | content/renderer/dom_automation_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698