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

Unified Diff: content/public/browser/profiler_synchronizer.h

Issue 8588023: Collect profiler stats from browser child processes. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: content/public/browser/profiler_synchronizer.h
===================================================================
--- content/public/browser/profiler_synchronizer.h (revision 0)
+++ content/public/browser/profiler_synchronizer.h (revision 0)
@@ -0,0 +1,23 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_PUBLIC_BROWSER_PROFILER_SYNCHRONIZER_H_
+#define CONTENT_PUBLIC_BROWSER_PROFILER_SYNCHRONIZER_H_
+#pragma once
+
+#include "content/common/content_export.h"
+
+namespace content {
+
+// Contact all processes and ask them to profiler data. It returns 2 to indicate
+// that ProfilerController's OnPendingProcesses will be called once for renderer
+// processes and another for browser child processes.
+CONTENT_EXPORT int GetProfilerData(int sequence_number);
jam 2011/11/28 15:17:34 just a few general notes about the api: -it seems
ramant (doing other things) 2011/11/29 01:32:20 Didn't want chrome code to know how many type proc
jam 2011/11/30 00:22:25 but it's not hiding it if we tell the embedder thi
+
+// Contact all processes and set profiler status to |enable|.
+CONTENT_EXPORT void SetProfilerStatus(bool enable);
+
+} // namespace content
+
+#endif // CONTENT_PUBLIC_BROWSER_PROFILER_SYNCHRONIZER_H_
Property changes on: content\public\browser\profiler_synchronizer.h
___________________________________________________________________
Added: svn:executable
+ *
« content/public/browser/profiler_subscriber.h ('K') | « content/public/browser/profiler_subscriber.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698