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

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: fixed review comments Created 8 years, 8 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 | « base/cygprofile/cygprofile.gyp ('k') | chrome/chrome_exe.gypi » ('j') | no next file with comments »
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 c0b770dcc43a9afaaebf4a127720cf56195d2609..30176002d8cadd681e132fd9f438a8d24f9ceb1a 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -198,6 +198,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).
@@ -491,6 +495,7 @@
'notifications%': '<(notifications)',
'clang_use_chrome_plugins%': '<(clang_use_chrome_plugins)',
'asan%': '<(asan)',
+ 'order_profiling%': '<(order_profiling)',
'order_text_section%': '<(order_text_section)',
'enable_register_protocol_handler%': '<(enable_register_protocol_handler)',
'enable_web_intents%': '<(enable_web_intents)',
@@ -2103,6 +2108,20 @@
'ADDRESS_SANITIZER',
],
}],
+ ['order_profiling!=0 and (chromeos==1 or OS=="linux")', {
+ 'target_conditions' : [
+ ['_toolset=="target"', {
+ 'cflags': [
+ '-finstrument-functions',
+# '-mno-sse2-testing',
+ ],
+# 'cflags!' : [
+# '-msse2',
+# '-mfpmath=sse',
+# ],
Dmitry Polukhin 2012/04/09 11:05:05 Do you need these commented out lines?
glotov 2012/04/11 17:00:33 Obsolete, removed. On 2012/04/09 11:05:05, Dmitry
+ }],
+ ],
+ }],
['linux_breakpad==1', {
'cflags': [ '-g' ],
'defines': ['USE_LINUX_BREAKPAD'],
« no previous file with comments | « base/cygprofile/cygprofile.gyp ('k') | chrome/chrome_exe.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698