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

Unified Diff: Source/config.gyp

Issue 399333002: add blink_disable_partition_allocator for memory profiler. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 5 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: Source/config.gyp
diff --git a/Source/config.gyp b/Source/config.gyp
index eb9fbccd631e3bb6b2797271ea04756495ab12ce..b4017b5b732e8f3c5f7853ffd6fbe50f5df428e5 100644
--- a/Source/config.gyp
+++ b/Source/config.gyp
@@ -39,6 +39,10 @@
# If set to 1 together with blink_gc_plugin, the Blink GC plugin will dump
# points-to graph files for each compilation unit.
'blink_gc_plugin_dump_graph%': 0,
+ # If set to 1, the Blink will use the base allocator instead of
+ # PartitionAlloc. so that the top of stack-unwinding becomes the caller
+ # which requests memory allocation in blink.
+ 'blink_disable_partition_allocator%': 0,
},
'targets': [
{
@@ -109,6 +113,11 @@
'OTHER_CFLAGS': ['<!@(../../../tools/clang/scripts/blink_gc_plugin_flags.sh enable-oilpan=<(enable_oilpan) dump-graph=<(blink_gc_plugin_dump_graph))'],
},
}],
+ ['blink_disable_partition_allocator==1', {
+ 'defines': [
+ 'MEMORY_TOOL_REPLACES_ALLOCATOR',
+ ],
+ }],
],
},
},
« 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