Index: build/common.gypi |
diff --git a/build/common.gypi b/build/common.gypi |
index a6e0b5696fd5c7c1fde4b61205d3ad352321d486..ee0616568ca9f5921719ddc6a507560c3622acc8 100644 |
--- a/build/common.gypi |
+++ b/build/common.gypi |
@@ -201,6 +201,13 @@ |
# 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. |
+ 'order_text_section%' : "", |
+ |
# Set to 1 compile with -fPIC cflag on linux. This is a must for shared |
# libraries on linux x86-64 and arm, plus ASLR. |
'linux_fpic%': 1, |
@@ -394,6 +401,8 @@ |
'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)', |
# Whether to build for Wayland display server |
@@ -1937,6 +1946,13 @@ |
'ADDRESS_SANITIZER', |
], |
}], |
+ ['order_profiling!=0 and (chromeos==1 or OS=="linux")', { |
+ 'target_conditions' : [ |
+ ['_toolset=="target"', { |
+ 'cflags': [ '-finstrument-functions' ], |
+ }], |
+ ], |
+ }], |
['no_strict_aliasing==1', { |
'cflags': [ |
'-fno-strict-aliasing', |