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

Unified Diff: content/renderer/render_thread_impl.cc

Issue 15082004: Adds chrome.memoryBenchmarking.heapProfilerDump for the browser process. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Removes return value Created 7 years, 7 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/renderer/render_thread_impl.cc
diff --git a/content/renderer/render_thread_impl.cc b/content/renderer/render_thread_impl.cc
index 1543de89df366ccd135815165857613b977c343a..013463db6f00af283c3f6cd0bc9a6d1f17ab9805 100644
--- a/content/renderer/render_thread_impl.cc
+++ b/content/renderer/render_thread_impl.cc
@@ -397,8 +397,10 @@ void RenderThreadImpl::Init() {
if (command_line.HasSwitch(switches::kEnableGpuBenchmarking))
RegisterExtension(GpuBenchmarkingExtension::Get());
+#if defined(USE_TCMALLOC) && (defined(OS_LINUX) || defined(OS_ANDROID))
Dai Mikurube (NOT FULLTIME) 2013/05/15 10:24:04 Same as the comment in memory_benchmarking_extensi
bulach 2013/05/15 10:58:29 same response :)
if (command_line.HasSwitch(switches::kEnableMemoryBenchmarking))
RegisterExtension(MemoryBenchmarkingExtension::Get());
+#endif // USE_TCMALLOC
if (command_line.HasSwitch(switches::kEnableSkiaBenchmarking)) {
LOG(WARNING) << "Enabling unsafe Skia benchmarking extension.";

Powered by Google App Engine
This is Rietveld 408576698