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

Side by Side Diff: content/browser/histogram_controller.cc

Issue 10831247: Disable getting histogram data from child processes. (Closed) Base URL: svn://chrome-svn/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
« no previous file with comments | « base/metrics/histogram_snapshot_manager.cc ('k') | no next file » | 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) 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/browser/histogram_controller.h" 5 #include "content/browser/histogram_controller.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/metrics/histogram.h" 8 #include "base/metrics/histogram.h"
9 #include "content/browser/histogram_subscriber.h" 9 #include "content/browser/histogram_subscriber.h"
10 #include "content/common/child_process_messages.h" 10 #include "content/common/child_process_messages.h"
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 const HistogramSubscriber* subscriber) { 63 const HistogramSubscriber* subscriber) {
64 DCHECK_EQ(subscriber_, subscriber); 64 DCHECK_EQ(subscriber_, subscriber);
65 subscriber_ = NULL; 65 subscriber_ = NULL;
66 } 66 }
67 67
68 void HistogramController::GetHistogramDataFromChildProcesses( 68 void HistogramController::GetHistogramDataFromChildProcesses(
69 int sequence_number) { 69 int sequence_number) {
70 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); 70 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
71 71
72 int pending_processes = 0; 72 int pending_processes = 0;
73 /* TODO(rtenneti): Enable collecting histogram from child processes.
73 for (BrowserChildProcessHostIterator iter; !iter.Done(); ++iter) { 74 for (BrowserChildProcessHostIterator iter; !iter.Done(); ++iter) {
74 ++pending_processes; 75 ++pending_processes;
75 if (!iter.Send(new ChildProcessMsg_GetChildHistogramData(sequence_number))) 76 if (!iter.Send(new ChildProcessMsg_GetChildHistogramData(sequence_number)))
76 --pending_processes; 77 --pending_processes;
77 } 78 }
79 */
78 80
79 BrowserThread::PostTask( 81 BrowserThread::PostTask(
80 BrowserThread::UI, 82 BrowserThread::UI,
81 FROM_HERE, 83 FROM_HERE,
82 base::Bind( 84 base::Bind(
83 &HistogramController::OnPendingProcesses, 85 &HistogramController::OnPendingProcesses,
84 base::Unretained(this), 86 base::Unretained(this),
85 sequence_number, 87 sequence_number,
86 pending_processes, 88 pending_processes,
87 true)); 89 true));
(...skipping 15 matching lines...) Expand all
103 105
104 BrowserThread::PostTask( 106 BrowserThread::PostTask(
105 BrowserThread::IO, 107 BrowserThread::IO,
106 FROM_HERE, 108 FROM_HERE,
107 base::Bind(&HistogramController::GetHistogramDataFromChildProcesses, 109 base::Bind(&HistogramController::GetHistogramDataFromChildProcesses,
108 base::Unretained(this), 110 base::Unretained(this),
109 sequence_number)); 111 sequence_number));
110 } 112 }
111 113
112 } // namespace content 114 } // namespace content
OLDNEW
« no previous file with comments | « base/metrics/histogram_snapshot_manager.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698