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

Unified Diff: content/renderer/render_thread_impl.cc

Issue 12211008: Add a benchmarking_extension API to call TCMalloc's HeapProfilerDump(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: addressed the comment Created 7 years, 10 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
« no previous file with comments | « content/renderer/memory_benchmarking_extension.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_thread_impl.cc
diff --git a/content/renderer/render_thread_impl.cc b/content/renderer/render_thread_impl.cc
index 3b931b1c4b2e8c005a0d8224cc6480b7840c4047..975e13ec35cacd44864906732b0242d882a1e803 100644
--- a/content/renderer/render_thread_impl.cc
+++ b/content/renderer/render_thread_impl.cc
@@ -63,6 +63,7 @@
#include "content/renderer/media/peer_connection_tracker.h"
#include "content/renderer/media/video_capture_impl_manager.h"
#include "content/renderer/media/video_capture_message_filter.h"
+#include "content/renderer/memory_benchmarking_extension.h"
#include "content/renderer/p2p/socket_dispatcher.h"
#include "content/renderer/plugin_channel_host.h"
#include "content/renderer/render_process_impl.h"
@@ -357,6 +358,9 @@ void RenderThreadImpl::Init() {
if (command_line.HasSwitch(switches::kEnableGpuBenchmarking))
RegisterExtension(GpuBenchmarkingExtension::Get());
+ if (command_line.HasSwitch(switches::kEnableMemoryBenchmarking))
+ RegisterExtension(MemoryBenchmarkingExtension::Get());
+
context_lost_cb_.reset(new GpuVDAContextLostCallback());
// Note that under Linux, the media library will normally already have
« no previous file with comments | « content/renderer/memory_benchmarking_extension.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698