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

Unified Diff: base/BUILD.gn

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
« no previous file with comments | « no previous file | base/debug/thread_heap_usage_tracker.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/BUILD.gn
diff --git a/base/BUILD.gn b/base/BUILD.gn
index 6e929147fa8e438b71da61d09e69392306979cfa..729ea56dfb8f55cf116898ff9fa985cf20e8ae99 100644
--- a/base/BUILD.gn
+++ b/base/BUILD.gn
@@ -35,6 +35,11 @@ declare_args() {
# See //base/build_time.cc and //build/write_build_date_header.py for more
# details and the expected format.
override_build_date = "N/A"
+
+ # Turn on memory profiling in the task profiler when the heap shim is
+ # available, except for official builds for now.
+ enable_memory_task_profiler =
+ use_experimental_allocator_shim && !is_official_build
}
if (is_android) {
@@ -1499,7 +1504,10 @@ component("base") {
buildflag_header("debugging_flags") {
header = "debugging_flags.h"
header_dir = "base/debug"
- flags = [ "ENABLE_PROFILING=$enable_profiling" ]
+ flags = [
+ "ENABLE_PROFILING=$enable_profiling",
+ "ENABLE_MEMORY_TASK_PROFILER=$enable_memory_task_profiler",
+ ]
}
# This is the subset of files from base that should not be used with a dynamic
« no previous file with comments | « no previous file | base/debug/thread_heap_usage_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698