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

Unified Diff: content/browser/profiler_controller_impl.h

Issue 10041017: Show gpu process stats in about:tcmalloc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: with correct (?) layering Created 8 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/profiler_controller_impl.h
diff --git a/content/browser/profiler_controller_impl.h b/content/browser/profiler_controller_impl.h
index 13f9c331ba2c17d6019271f70d6a4b5692e519d2..bc930f68476abe77a052d8b0886344279d1de7f0 100644
--- a/content/browser/profiler_controller_impl.h
+++ b/content/browser/profiler_controller_impl.h
@@ -6,6 +6,7 @@
#define CONTENT_BROWSER_PROFILER_CONTROLLER_IMPL_H_
#include "base/memory/singleton.h"
+#include "base/process.h"
#include "content/common/content_export.h"
#include "content/public/browser/profiler_controller.h"
#include "content/public/common/process_type.h"
@@ -34,12 +35,20 @@ class ProfilerControllerImpl : public ProfilerController {
void OnPendingProcesses(int sequence_number, int pending_processes, bool end);
// Send the |profiler_data| back to the |subscriber_|.
- // This is called on the UI thread.
+ // This can be called from any thread.
void OnProfilerDataCollected(
int sequence_number,
const tracked_objects::ProcessDataSnapshot& profiler_data,
content::ProcessType process_type);
+#if defined(USE_TCMALLOC)
+ // Send the tcmalloc stats |output| back to |subscriber_|
+ // This can be called from any thread.
+ void OnTcmallocStatsCollected(base::ProcessId pid,
+ ProcessType process_type,
+ const std::string& output);
+#endif
+
// ProfilerController implementation:
virtual void Register(ProfilerSubscriber* subscriber) OVERRIDE;
virtual void Unregister(const ProfilerSubscriber* subscriber) OVERRIDE;

Powered by Google App Engine
This is Rietveld 408576698