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

Unified Diff: chrome/browser/metrics/tracking_synchronizer.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/metrics/tracking_synchronizer.cc
diff --git a/chrome/browser/metrics/tracking_synchronizer.cc b/chrome/browser/metrics/tracking_synchronizer.cc
index 635e0fde7e0e813fb9f03e2775cba3fe5e7702de..b955d4bf1c5f602eaf38c88d273666a4145fa97f 100644
--- a/chrome/browser/metrics/tracking_synchronizer.cc
+++ b/chrome/browser/metrics/tracking_synchronizer.cc
@@ -10,6 +10,7 @@
#include "base/threading/thread.h"
#include "base/tracked_objects.h"
#include "chrome/browser/metrics/tracking_synchronizer_observer.h"
+#include "chrome/browser/browser_about_handler.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/profiler_controller.h"
@@ -239,6 +240,16 @@ void TrackingSynchronizer::OnProfilerDataCollected(
process_type);
}
+#if defined(USE_TCMALLOC)
+void TrackingSynchronizer::OnTcmallocStatsCollected(
+ base::ProcessId pid,
+ content::ProcessType process_type,
+ const std::string& output) {
+ AboutTcmallocOutputs::GetInstance()->OnStatsForChildProcess(
+ pid, process_type, output);
+}
+#endif
+
int TrackingSynchronizer::RegisterAndNotifyAllProcesses(
const base::WeakPtr<TrackingSynchronizerObserver>& callback_object) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));

Powered by Google App Engine
This is Rietveld 408576698