summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
Diffstat (limited to 'build')
-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.