Factor out skia_keep_frame_pointer. Handy with perf to get call stacks.

Today it's set when we're running a sanitizer, but it's more generally useful.  perf record -g (--call-graph) only works for me if we don't omit the frame pointer.

BUG=
R=bungeman@google.com

Author: mtklein@google.com

Review URL: https://codereview.chromium.org/41923004

git-svn-id: http://skia.googlecode.com/svn/trunk@11966 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
commit-bot@chromium.org 2013-10-25 18:14:54 +00:00
parent 72b8cb2320
commit 5003bde3f8
2 changed files with 5 additions and 1 deletions

View File

@ -280,7 +280,6 @@
[ 'skia_sanitizer', {
'cflags': [
'-fsanitize=<(skia_sanitizer)',
'-fno-omit-frame-pointer',
],
'ldflags': [
'-fsanitize=<(skia_sanitizer)',
@ -304,6 +303,9 @@
'-Wstring-conversion',
],
}],
[ 'skia_keep_frame_pointer', {
'cflags': [ '-fno-omit-frame-pointer' ],
}],
],
},
],

View File

@ -120,8 +120,10 @@
}],
[ 'skia_sanitizer', {
'skia_clang_build': 1,
'skia_keep_frame_pointer': 1,
}, {
'skia_clang_build%': 0,
'skia_keep_frame_pointer%': 0,
}],
],