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

Unified Diff: build/common.gypi

Issue 986503002: components/metrics: Add runtime memory leak detector (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Replace tcmalloc's wrappers with pthread_spinlock and standard allocator (no more tcmalloc changes) Created 5 years, 3 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 | components/components_tests.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/common.gypi
diff --git a/build/common.gypi b/build/common.gypi
index 60591d323a193a7b7e19bfc5adcce2fe2afd0ba0..9310588080e6387064e54ad9314e853659c68959 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -1399,6 +1399,9 @@
# Profile without optimizing out stack frames when profiling==1.
'profiling_full_stack_frames%': '0',
+ # Enable runtime memory leak detector.
+ 'enable_leak_detector%': 0,
+
# And if we want to dump symbols for Breakpad-enabled builds.
'linux_dump_symbols%': 0,
# And if we want to strip the binary after dumping symbols.
@@ -2760,6 +2763,12 @@
['profiling==1', {
'defines': ['ENABLE_PROFILING=1'],
}],
+ ['enable_leak_detector==1 and chromeos==1', {
+ 'defines': ['ENABLE_LEAK_DETECTOR=1'],
+ }],
+ ['remoting==1', {
+ 'defines': ['ENABLE_REMOTING=1'],
Will Harris 2015/09/26 05:09:06 driveby: this looks like a confused rebase?
Simon Que 2015/09/26 21:48:33 Done.
+ }],
['enable_webrtc==1', {
'defines': ['ENABLE_WEBRTC=1'],
}],
@@ -3893,6 +3902,11 @@
'release_optimize%': 's',
},
}],
+ ['enable_leak_detector==1 and chromeos==1', {
+ 'cflags': [
+ '-fno-omit-frame-pointer',
+ ],
+ }],
['profiling==1', {
'cflags': [
'-fno-omit-frame-pointer',
« no previous file with comments | « no previous file | components/components_tests.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698