summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authordavemoore@chromium.org <davemoore@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-01 23:35:25 +0000
committerdavemoore@chromium.org <davemoore@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-01 23:35:25 +0000
commit7664ab3d9d921bc769977c2921ecb4e5ea0cc793 (patch)
treeab884002c040253f951d05ef7b3e5033d35d1c99 /build
parent22258c851d500a42113c833ac06d244cf4d4236b (diff)
downloadchromium_src-7664ab3d9d921bc769977c2921ecb4e5ea0cc793.zip
chromium_src-7664ab3d9d921bc769977c2921ecb4e5ea0cc793.tar.gz
chromium_src-7664ab3d9d921bc769977c2921ecb4e5ea0cc793.tar.bz2
Added command line switches and UI (controlled via a build option)
to make it easier to use the sampling profiler. BUG=None TEST=None Review URL: http://codereview.chromium.org/6250070 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@73374 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build')
-rw-r--r--build/common.gypi13
1 files changed, 13 insertions, 0 deletions
diff --git a/build/common.gypi b/build/common.gypi
index 46059bd..45446f6 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -282,6 +282,10 @@
'clang_load%': '',
'clang_add_plugin%': '',
+ # Enable sampling based profiler.
+ # See http://google-perftools.googlecode.com/svn/trunk/doc/cpuprofile.html
+ 'profiling%': '0',
+
# Override whether we should use Breakpad on Linux. I.e. for Chrome bot.
'linux_breakpad%': 0,
# And if we want to dump symbols for Breakpad-enabled builds.
@@ -542,6 +546,9 @@
['touchui==1', {
'defines': ['TOUCH_UI=1'],
}],
+ ['profiling==1', {
+ 'defines': ['ENABLE_PROFILING=1'],
+ }],
['remoting==1', {
'defines': ['ENABLE_REMOTING=1'],
}],
@@ -1020,6 +1027,12 @@
'-fno-ident',
],
}],
+ ['profiling==1', {
+ 'cflags': [
+ '-fno-omit-frame-pointer',
+ '-g',
+ ],
+ }],
]
},
},