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

Side by Side Diff: chrome/renderer/renderer_histogram_snapshots.cc

Issue 6864001: Move RenderProcess to content. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 8 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/renderer/renderer_glue.cc ('k') | chrome/renderer/renderer_main.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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/renderer/renderer_histogram_snapshots.h" 5 #include "chrome/renderer/renderer_histogram_snapshots.h"
6 6
7 #include <ctype.h> 7 #include <ctype.h>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
11 #include "base/metrics/histogram.h" 11 #include "base/metrics/histogram.h"
12 #include "chrome/common/render_messages.h" 12 #include "chrome/common/render_messages.h"
13 #include "chrome/renderer/render_process.h"
14 #include "content/renderer/render_thread.h" 13 #include "content/renderer/render_thread.h"
15 14
16 // TODO(raman): Before renderer shuts down send final snapshot lists. 15 // TODO(raman): Before renderer shuts down send final snapshot lists.
17 16
18 using base::Histogram; 17 using base::Histogram;
19 using base::StatisticsRecorder; 18 using base::StatisticsRecorder;
20 19
21 RendererHistogramSnapshots::RendererHistogramSnapshots() 20 RendererHistogramSnapshots::RendererHistogramSnapshots()
22 : ALLOW_THIS_IN_INITIALIZER_LIST( 21 : ALLOW_THIS_IN_INITIALIZER_LIST(
23 renderer_histogram_snapshots_factory_(this)) { 22 renderer_histogram_snapshots_factory_(this)) {
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 void RendererHistogramSnapshots::UniqueInconsistencyDetected(int problem) { 80 void RendererHistogramSnapshots::UniqueInconsistencyDetected(int problem) {
82 UMA_HISTOGRAM_ENUMERATION("Histogram.InconsistenciesRendererUnique", 81 UMA_HISTOGRAM_ENUMERATION("Histogram.InconsistenciesRendererUnique",
83 problem, Histogram::NEVER_EXCEEDED_VALUE); 82 problem, Histogram::NEVER_EXCEEDED_VALUE);
84 } 83 }
85 84
86 void RendererHistogramSnapshots::SnapshotProblemResolved(int amount) { 85 void RendererHistogramSnapshots::SnapshotProblemResolved(int amount) {
87 UMA_HISTOGRAM_COUNTS("Histogram.InconsistentSnapshotRenderer", 86 UMA_HISTOGRAM_COUNTS("Histogram.InconsistentSnapshotRenderer",
88 std::abs(amount)); 87 std::abs(amount));
89 } 88 }
90 89
OLDNEW
« no previous file with comments | « chrome/renderer/renderer_glue.cc ('k') | chrome/renderer/renderer_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698