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

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

Issue 2386123003: Add heap allocator usage to task profiler. (Closed)
Patch Set: Address Eric's comment. Created 4 years 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/ui/webui/profiler_ui.cc
diff --git a/chrome/browser/ui/webui/profiler_ui.cc b/chrome/browser/ui/webui/profiler_ui.cc
index 36376ad09457dac00ef6e93ab96a18a0ea5a793b..8c0eacf5b03c2ae2817de01cfaecac7398340cc0 100644
--- a/chrome/browser/ui/webui/profiler_ui.cc
+++ b/chrome/browser/ui/webui/profiler_ui.cc
@@ -14,6 +14,7 @@
// #define USE_SOURCE_FILES_DIRECTLY
#include "base/bind.h"
+#include "base/debug/debugging_flags.h"
#include "base/macros.h"
#include "base/strings/string_util.h"
#include "base/tracked_objects.h"
@@ -105,6 +106,9 @@ content::WebUIDataSource* CreateProfilerHTMLSource() {
source->AddResourcePath("profiler.js", IDR_PROFILER_JS);
source->SetDefaultResource(IDR_PROFILER_HTML);
source->DisableI18nAndUseGzipForAllPaths();
+ source->AddBoolean("enableMemoryTaskProfiler",
+ BUILDFLAG(ENABLE_MEMORY_TASK_PROFILER));
+
return source;
}
« no previous file with comments | « chrome/browser/task_profiler/task_profiler_data_serializer_unittest.cc ('k') | content/common/child_process_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698