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

Unified Diff: build/common.gypi

Issue 8770054: Tool to log the execution of Chrome. Initial add. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: moved /base/cygprofile to /tools/cygprofile Created 8 years, 7 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 | chrome/chrome_exe.gypi » ('j') | tools/cygprofile/cygprofile.cc » ('J')
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 47e937d214532028a7c5fed7531dc84f2f908214..58e5385467fb4e4b31ed2c9a4e959ebc503289ac 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -233,6 +233,10 @@
# See https://sites.google.com/a/chromium.org/dev/developers/testing/addresssanitizer
'asan%': 0,
+ # Set to true to instrument the code with function call logger.
+ # See src/third_party/cygprofile/cyg-profile.cc for details.
+ 'order_profiling%': 0,
+
# Use the provided profiled order file to link Chrome image with it.
# This makes Chrome faster by better using CPU cache when executing code.
# This is known as PGO (profile guided optimization).
@@ -544,6 +548,7 @@
'notifications%': '<(notifications)',
'clang_use_chrome_plugins%': '<(clang_use_chrome_plugins)',
'asan%': '<(asan)',
+ 'order_profiling%': '<(order_profiling)',
'order_text_section%': '<(order_text_section)',
'enable_extensions%': '<(enable_extensions)',
'enable_web_intents%': '<(enable_web_intents)',
@@ -2195,6 +2200,15 @@
'ADDRESS_SANITIZER',
],
}],
+ ['order_profiling!=0 and (chromeos==1 or OS=="linux")', {
+ 'target_conditions' : [
+ ['_toolset=="target"', {
+ 'cflags': [
+ '-finstrument-functions',
+ ],
+ }],
+ ],
+ }],
['linux_breakpad==1', {
'cflags': [ '-g' ],
'defines': ['USE_LINUX_BREAKPAD'],
« no previous file with comments | « no previous file | chrome/chrome_exe.gypi » ('j') | tools/cygprofile/cygprofile.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698