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

Side by Side Diff: build/common.gypi

Issue 10411047: Type profiler by intercepting 'new' and 'delete' expressions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed for jar's comments #72 Created 8 years, 3 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 # IMPORTANT: 5 # IMPORTANT:
6 # Please don't directly include this file if you are building via gyp_chromium, 6 # Please don't directly include this file if you are building via gyp_chromium,
7 # since gyp_chromium is automatically forcing its inclusion. 7 # since gyp_chromium is automatically forcing its inclusion.
8 { 8 {
9 # Variables expected to be overriden on the GYP command line (-D) or by 9 # Variables expected to be overriden on the GYP command line (-D) or by
10 # ~/.gyp/include.gypi. 10 # ~/.gyp/include.gypi.
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 # Enable building with ASAN (Clang's -faddress-sanitizer option). 246 # Enable building with ASAN (Clang's -faddress-sanitizer option).
247 # -faddress-sanitizer only works with clang, but asan=1 implies clang=1 247 # -faddress-sanitizer only works with clang, but asan=1 implies clang=1
248 # See https://sites.google.com/a/chromium.org/dev/developers/testing/addre sssanitizer 248 # See https://sites.google.com/a/chromium.org/dev/developers/testing/addre sssanitizer
249 'asan%': 0, 249 'asan%': 0,
250 250
251 # Enable building with TSAN (Clang's -fthread-sanitizer option). 251 # Enable building with TSAN (Clang's -fthread-sanitizer option).
252 # -fthread-sanitizer only works with clang, but tsan=1 implies clang=1 252 # -fthread-sanitizer only works with clang, but tsan=1 implies clang=1
253 # See http://clang.llvm.org/docs/ThreadSanitizer.html 253 # See http://clang.llvm.org/docs/ThreadSanitizer.html
254 'tsan%': 0, 254 'tsan%': 0,
255 255
256 # Use a modified version of Clang to intercept allocated types and sizes
257 # for allocated objects. clang_type_profiler=1 implies clang=1.
258 # See http://dev.chromium.org/developers/deep-memory-profiler/cpp-object-t ype-identifier
259 # TODO(dmikurube): Support mac. See http://crbug.com/123758#c11
260 'clang_type_profiler%': 0,
261
256 # Set to true to instrument the code with function call logger. 262 # Set to true to instrument the code with function call logger.
257 # See src/third_party/cygprofile/cyg-profile.cc for details. 263 # See src/third_party/cygprofile/cyg-profile.cc for details.
258 'order_profiling%': 0, 264 'order_profiling%': 0,
259 265
260 # Use the provided profiled order file to link Chrome image with it. 266 # Use the provided profiled order file to link Chrome image with it.
261 # This makes Chrome faster by better using CPU cache when executing code. 267 # This makes Chrome faster by better using CPU cache when executing code.
262 # This is known as PGO (profile guided optimization). 268 # This is known as PGO (profile guided optimization).
263 # See https://sites.google.com/a/google.com/chrome-msk/dev/boot-speed-up-e ffort 269 # See https://sites.google.com/a/google.com/chrome-msk/dev/boot-speed-up-e ffort
264 'order_text_section%' : "", 270 'order_text_section%' : "",
265 271
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after
588 'enable_one_click_signin%': '<(enable_one_click_signin)', 594 'enable_one_click_signin%': '<(enable_one_click_signin)',
589 'enable_webrtc%': '<(enable_webrtc)', 595 'enable_webrtc%': '<(enable_webrtc)',
590 'chromium_win_pch%': '<(chromium_win_pch)', 596 'chromium_win_pch%': '<(chromium_win_pch)',
591 'configuration_policy%': '<(configuration_policy)', 597 'configuration_policy%': '<(configuration_policy)',
592 'safe_browsing%': '<(safe_browsing)', 598 'safe_browsing%': '<(safe_browsing)',
593 'input_speech%': '<(input_speech)', 599 'input_speech%': '<(input_speech)',
594 'notifications%': '<(notifications)', 600 'notifications%': '<(notifications)',
595 'clang_use_chrome_plugins%': '<(clang_use_chrome_plugins)', 601 'clang_use_chrome_plugins%': '<(clang_use_chrome_plugins)',
596 'asan%': '<(asan)', 602 'asan%': '<(asan)',
597 'tsan%': '<(tsan)', 603 'tsan%': '<(tsan)',
604 'clang_type_profiler%': '<(clang_type_profiler)',
598 'order_profiling%': '<(order_profiling)', 605 'order_profiling%': '<(order_profiling)',
599 'order_text_section%': '<(order_text_section)', 606 'order_text_section%': '<(order_text_section)',
600 'enable_extensions%': '<(enable_extensions)', 607 'enable_extensions%': '<(enable_extensions)',
601 'enable_web_intents%': '<(enable_web_intents)', 608 'enable_web_intents%': '<(enable_web_intents)',
602 'enable_web_intents_tag%': '<(enable_web_intents_tag)', 609 'enable_web_intents_tag%': '<(enable_web_intents_tag)',
603 'ios_sdk%': '<(ios_sdk)', 610 'ios_sdk%': '<(ios_sdk)',
604 'ios_deployment_target%': '<(ios_deployment_target)', 611 'ios_deployment_target%': '<(ios_deployment_target)',
605 'enable_plugin_installation%': '<(enable_plugin_installation)', 612 'enable_plugin_installation%': '<(enable_plugin_installation)',
606 'enable_protector_service%': '<(enable_protector_service)', 613 'enable_protector_service%': '<(enable_protector_service)',
607 'enable_session_service%': '<(enable_session_service)', 614 'enable_session_service%': '<(enable_session_service)',
(...skipping 601 matching lines...) Expand 10 before | Expand all | Expand 10 after
1209 'clang%': 1, 1216 'clang%': 1,
1210 }], 1217 }],
1211 ['asan==1 and OS=="mac"', { 1218 ['asan==1 and OS=="mac"', {
1212 # See http://crbug.com/145503. 1219 # See http://crbug.com/145503.
1213 'component': "static_library", 1220 'component': "static_library",
1214 }], 1221 }],
1215 ['tsan==1', { 1222 ['tsan==1', {
1216 'clang%': 1, 1223 'clang%': 1,
1217 }], 1224 }],
1218 1225
1226 ['OS=="linux" and clang_type_profiler==1', {
1227 'clang%': 1,
1228 'clang_use_chrome_plugins%': 0,
1229 'make_clang_dir%': 'third_party/llvm-allocated-type/Linux_x64',
1230 }],
1231
1219 # On valgrind bots, override the optimizer settings so we don't inline too 1232 # On valgrind bots, override the optimizer settings so we don't inline too
1220 # much and make the stacks harder to figure out. 1233 # much and make the stacks harder to figure out.
1221 # 1234 #
1222 # TODO(rnk): Kill off variables that no one else uses and just implement 1235 # TODO(rnk): Kill off variables that no one else uses and just implement
1223 # them under a build_for_tool== condition. 1236 # them under a build_for_tool== condition.
1224 ['build_for_tool=="memcheck" or build_for_tool=="tsan"', { 1237 ['build_for_tool=="memcheck" or build_for_tool=="tsan"', {
1225 # gcc flags 1238 # gcc flags
1226 'mac_debug_optimization': '1', 1239 'mac_debug_optimization': '1',
1227 'mac_release_optimization': '1', 1240 'mac_release_optimization': '1',
1228 'release_optimize': '1', 1241 'release_optimize': '1',
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
1359 'mac_release_optimization%': 's', # Use -Os unless overridden 1372 'mac_release_optimization%': 's', # Use -Os unless overridden
1360 'mac_debug_optimization%': '0', # Use -O0 unless overridden 1373 'mac_debug_optimization%': '0', # Use -O0 unless overridden
1361 }, { 1374 }, {
1362 # See http://gcc.gnu.org/onlinedocs/gcc-4.4.2/gcc/Optimize-Options.htm l 1375 # See http://gcc.gnu.org/onlinedocs/gcc-4.4.2/gcc/Optimize-Options.htm l
1363 'mac_release_optimization%': '3', # Use -O3 unless overridden 1376 'mac_release_optimization%': '3', # Use -O3 unless overridden
1364 'mac_debug_optimization%': '0', # Use -O0 unless overridden 1377 'mac_debug_optimization%': '0', # Use -O0 unless overridden
1365 }], 1378 }],
1366 ], 1379 ],
1367 }, 1380 },
1368 'conditions': [ 1381 'conditions': [
1382 ['OS=="linux" and linux_use_tcmalloc==1 and clang_type_profiler==1', {
1383 'cflags_cc!': ['-fno-rtti'],
1384 'cflags_cc+': [
1385 '-frtti',
1386 '-gline-tables-only',
1387 '-fintercept-allocation-functions',
1388 ],
1389 'defines': ['TYPE_PROFILING'],
1390 'dependencies': [
1391 '<(DEPTH)/base/allocator/allocator.gyp:type_profiler',
1392 ],
1393 }],
1369 ['OS=="win" and "<(msbuild_toolset)"!=""', { 1394 ['OS=="win" and "<(msbuild_toolset)"!=""', {
1370 'msbuild_toolset': '<(msbuild_toolset)', 1395 'msbuild_toolset': '<(msbuild_toolset)',
1371 }], 1396 }],
1372 ['branding=="Chrome"', { 1397 ['branding=="Chrome"', {
1373 'defines': ['GOOGLE_CHROME_BUILD'], 1398 'defines': ['GOOGLE_CHROME_BUILD'],
1374 }, { # else: branding!="Chrome" 1399 }, { # else: branding!="Chrome"
1375 'defines': ['CHROMIUM_BUILD'], 1400 'defines': ['CHROMIUM_BUILD'],
1376 }], 1401 }],
1377 ['OS=="mac" and component=="shared_library"', { 1402 ['OS=="mac" and component=="shared_library"', {
1378 'xcode_settings': { 1403 'xcode_settings': {
(...skipping 2047 matching lines...) Expand 10 before | Expand all | Expand 10 after
3426 # settings in target dicts. SYMROOT is a special case, because many other 3451 # settings in target dicts. SYMROOT is a special case, because many other
3427 # Xcode variables depend on it, including variables such as 3452 # Xcode variables depend on it, including variables such as
3428 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 3453 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
3429 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 3454 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
3430 # files to appear (when present) in the UI as actual files and not red 3455 # files to appear (when present) in the UI as actual files and not red
3431 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 3456 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
3432 # and therefore SYMROOT, needs to be set at the project level. 3457 # and therefore SYMROOT, needs to be set at the project level.
3433 'SYMROOT': '<(DEPTH)/xcodebuild', 3458 'SYMROOT': '<(DEPTH)/xcodebuild',
3434 }, 3459 },
3435 } 3460 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698