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

Unified Diff: chrome/browser/ui/webui/profiler_ui.cc

Issue 2705243002: chrome://profiler: Only show memory metrics in when heap tracking is enabled. (Closed)
Patch Set: Created 3 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/profiler_ui.cc
diff --git a/chrome/browser/ui/webui/profiler_ui.cc b/chrome/browser/ui/webui/profiler_ui.cc
index a9e9fee6e43be4de5104066704cdb87470e9e471..2bf297e4fdd059c8dd383d6c158dbfb7d90be215 100644
--- a/chrome/browser/ui/webui/profiler_ui.cc
+++ b/chrome/browser/ui/webui/profiler_ui.cc
@@ -15,6 +15,7 @@
#include "base/bind.h"
#include "base/debug/debugging_flags.h"
+#include "base/debug/thread_heap_usage_tracker.h"
#include "base/macros.h"
#include "base/memory/ptr_util.h"
#include "base/strings/string_util.h"
@@ -107,8 +108,9 @@ content::WebUIDataSource* CreateProfilerHTMLSource() {
source->AddResourcePath("profiler.js", IDR_PROFILER_JS);
source->SetDefaultResource(IDR_PROFILER_HTML);
source->UseGzip(std::unordered_set<std::string>());
- source->AddBoolean("enableMemoryTaskProfiler",
- BUILDFLAG(ENABLE_MEMORY_TASK_PROFILER));
+ source->AddBoolean(
+ "enableMemoryTaskProfiler",
+ base::debug::ThreadHeapUsageTracker::IsHeapTrackingEnabled());
return source;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698