summaryrefslogtreecommitdiffstats
path: root/build/common.gypi
diff options
context:
space:
mode:
authordmikurube@chromium.org <dmikurube@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-23 14:17:58 +0000
committerdmikurube@chromium.org <dmikurube@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-23 14:17:58 +0000
commit0358c4835c1ba2500416fd53f6730c1a2d70307b (patch)
treee1f39204363e094ea2620ac642bbecadcd55f495 /build/common.gypi
parentad1f1194a835da6f9ad3d375f2eaab163a765977 (diff)
downloadchromium_src-0358c4835c1ba2500416fd53f6730c1a2d70307b.zip
chromium_src-0358c4835c1ba2500416fd53f6730c1a2d70307b.tar.gz
chromium_src-0358c4835c1ba2500416fd53f6730c1a2d70307b.tar.bz2
Add 'profiling_full_stack_frames' build option not to optimize out stack frames when profiling.
It enables the heap-profiler in Release builds. BUG=252560 R=phajdan.jr@chromium.org Review URL: https://codereview.chromium.org/17115015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@208127 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build/common.gypi')
-rw-r--r--build/common.gypi10
1 files changed, 10 insertions, 0 deletions
diff --git a/build/common.gypi b/build/common.gypi
index bb9f781..61f6630 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -962,6 +962,8 @@
# Enable sampling based profiler.
# See http://google-perftools.googlecode.com/svn/trunk/doc/cpuprofile.html
'profiling%': '0',
+ # Profile without optimizing out stack frames when profiling==1.
+ 'profiling_full_stack_frames%': '0',
# Enable strict glibc debug mode.
'glibcxx_debug%': 0,
@@ -2833,6 +2835,14 @@
'-fno-omit-frame-pointer',
'-g',
],
+ 'conditions' : [
+ ['profiling_full_stack_frames==1', {
+ 'cflags': [
+ '-fno-inline',
+ '-fno-optimize-sibling-calls',
+ ],
+ }],
+ ],
}],
# Can be omitted to reduce output size. Does not seem to affect
# crash reporting.