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

Unified Diff: chrome/browser/browser_about_handler.cc

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: chrome/browser/browser_about_handler.cc
diff --git a/chrome/browser/browser_about_handler.cc b/chrome/browser/browser_about_handler.cc
index 6a4a10f07b2a9e7a5c49a1b3cb6f27827d0a0b67..0d2b8bd1f217b74335e83659a3d04f69326ab9fa 100644
--- a/chrome/browser/browser_about_handler.cc
+++ b/chrome/browser/browser_about_handler.cc
@@ -202,9 +202,11 @@ AboutTcmallocOutputs::AboutTcmallocOutputs() {}
AboutTcmallocOutputs::~AboutTcmallocOutputs() {}
-// Glue between the callback task and the method in the singleton.
-void AboutTcmallocRendererCallback(base::ProcessId pid,
- const std::string& output) {
- AboutTcmallocOutputs::GetInstance()->RendererCallback(pid, output);
+void AboutTcmallocOutputs::OnStatsForChildProcess(
+ base::ProcessId pid, content::ProcessType process_type,
+ const std::string& output) {
+ std::string header = content::GetProcessTypeNameInEnglish(process_type);
+ base::StringAppendF(&header, " PID %d", static_cast<int>(pid));
+ SetOutput(header, output);
}
#endif

Powered by Google App Engine
This is Rietveld 408576698