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

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 Created 8 years, 2 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
« no previous file with comments | « base/process_util_posix.cc ('k') | content/app/content_main_runner.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 360 matching lines...) Expand 10 before | Expand all | Expand 10 after
626 'enable_one_click_signin%': '<(enable_one_click_signin)', 632 'enable_one_click_signin%': '<(enable_one_click_signin)',
627 'enable_webrtc%': '<(enable_webrtc)', 633 'enable_webrtc%': '<(enable_webrtc)',
628 'chromium_win_pch%': '<(chromium_win_pch)', 634 'chromium_win_pch%': '<(chromium_win_pch)',
629 'configuration_policy%': '<(configuration_policy)', 635 'configuration_policy%': '<(configuration_policy)',
630 'safe_browsing%': '<(safe_browsing)', 636 'safe_browsing%': '<(safe_browsing)',
631 'input_speech%': '<(input_speech)', 637 'input_speech%': '<(input_speech)',
632 'notifications%': '<(notifications)', 638 'notifications%': '<(notifications)',
633 'clang_use_chrome_plugins%': '<(clang_use_chrome_plugins)', 639 'clang_use_chrome_plugins%': '<(clang_use_chrome_plugins)',
634 'asan%': '<(asan)', 640 'asan%': '<(asan)',
635 'tsan%': '<(tsan)', 641 'tsan%': '<(tsan)',
642 'clang_type_profiler%': '<(clang_type_profiler)',
636 'order_profiling%': '<(order_profiling)', 643 'order_profiling%': '<(order_profiling)',
637 'order_text_section%': '<(order_text_section)', 644 'order_text_section%': '<(order_text_section)',
638 'enable_extensions%': '<(enable_extensions)', 645 'enable_extensions%': '<(enable_extensions)',
639 'enable_web_intents%': '<(enable_web_intents)', 646 'enable_web_intents%': '<(enable_web_intents)',
640 'enable_web_intents_tag%': '<(enable_web_intents_tag)', 647 'enable_web_intents_tag%': '<(enable_web_intents_tag)',
641 'ios_sdk%': '<(ios_sdk)', 648 'ios_sdk%': '<(ios_sdk)',
642 'ios_deployment_target%': '<(ios_deployment_target)', 649 'ios_deployment_target%': '<(ios_deployment_target)',
643 'enable_plugin_installation%': '<(enable_plugin_installation)', 650 'enable_plugin_installation%': '<(enable_plugin_installation)',
644 'enable_protector_service%': '<(enable_protector_service)', 651 'enable_protector_service%': '<(enable_protector_service)',
645 'enable_session_service%': '<(enable_session_service)', 652 'enable_session_service%': '<(enable_session_service)',
(...skipping 623 matching lines...) Expand 10 before | Expand all | Expand 10 after
1269 'clang%': 1, 1276 'clang%': 1,
1270 }], 1277 }],
1271 ['asan==1 and OS=="mac"', { 1278 ['asan==1 and OS=="mac"', {
1272 # See http://crbug.com/145503. 1279 # See http://crbug.com/145503.
1273 'component': "static_library", 1280 'component': "static_library",
1274 }], 1281 }],
1275 ['tsan==1', { 1282 ['tsan==1', {
1276 'clang%': 1, 1283 'clang%': 1,
1277 }], 1284 }],
1278 1285
1286 ['OS=="linux" and clang_type_profiler==1', {
1287 'clang%': 1,
1288 'clang_use_chrome_plugins%': 0,
1289 'make_clang_dir%': 'third_party/llvm-allocated-type/Linux_x64',
1290 }],
1291
1279 # On valgrind bots, override the optimizer settings so we don't inline too 1292 # On valgrind bots, override the optimizer settings so we don't inline too
1280 # much and make the stacks harder to figure out. 1293 # much and make the stacks harder to figure out.
1281 # 1294 #
1282 # TODO(rnk): Kill off variables that no one else uses and just implement 1295 # TODO(rnk): Kill off variables that no one else uses and just implement
1283 # them under a build_for_tool== condition. 1296 # them under a build_for_tool== condition.
1284 ['build_for_tool=="memcheck" or build_for_tool=="tsan"', { 1297 ['build_for_tool=="memcheck" or build_for_tool=="tsan"', {
1285 # gcc flags 1298 # gcc flags
1286 'mac_debug_optimization': '1', 1299 'mac_debug_optimization': '1',
1287 'mac_release_optimization': '1', 1300 'mac_release_optimization': '1',
1288 'release_optimize': '1', 1301 'release_optimize': '1',
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
1419 'mac_release_optimization%': 's', # Use -Os unless overridden 1432 'mac_release_optimization%': 's', # Use -Os unless overridden
1420 'mac_debug_optimization%': '0', # Use -O0 unless overridden 1433 'mac_debug_optimization%': '0', # Use -O0 unless overridden
1421 }, { 1434 }, {
1422 # See http://gcc.gnu.org/onlinedocs/gcc-4.4.2/gcc/Optimize-Options.htm l 1435 # See http://gcc.gnu.org/onlinedocs/gcc-4.4.2/gcc/Optimize-Options.htm l
1423 'mac_release_optimization%': '3', # Use -O3 unless overridden 1436 'mac_release_optimization%': '3', # Use -O3 unless overridden
1424 'mac_debug_optimization%': '0', # Use -O0 unless overridden 1437 'mac_debug_optimization%': '0', # Use -O0 unless overridden
1425 }], 1438 }],
1426 ], 1439 ],
1427 }, 1440 },
1428 'conditions': [ 1441 'conditions': [
1442 ['OS=="linux" and linux_use_tcmalloc==1 and clang_type_profiler==1', {
1443 'cflags_cc!': ['-fno-rtti'],
1444 'cflags_cc+': [
1445 '-frtti',
1446 '-gline-tables-only',
1447 '-fintercept-allocation-functions',
1448 ],
1449 'defines': ['TYPE_PROFILING'],
1450 'dependencies': [
1451 '<(DEPTH)/base/allocator/allocator.gyp:type_profiler',
1452 ],
1453 }],
1429 ['OS=="win" and "<(msbuild_toolset)"!=""', { 1454 ['OS=="win" and "<(msbuild_toolset)"!=""', {
1430 'msbuild_toolset': '<(msbuild_toolset)', 1455 'msbuild_toolset': '<(msbuild_toolset)',
1431 }], 1456 }],
1432 ['branding=="Chrome"', { 1457 ['branding=="Chrome"', {
1433 'defines': ['GOOGLE_CHROME_BUILD'], 1458 'defines': ['GOOGLE_CHROME_BUILD'],
1434 }, { # else: branding!="Chrome" 1459 }, { # else: branding!="Chrome"
1435 'defines': ['CHROMIUM_BUILD'], 1460 'defines': ['CHROMIUM_BUILD'],
1436 }], 1461 }],
1437 ['OS=="mac" and component=="shared_library"', { 1462 ['OS=="mac" and component=="shared_library"', {
1438 'xcode_settings': { 1463 'xcode_settings': {
(...skipping 2042 matching lines...) Expand 10 before | Expand all | Expand 10 after
3481 # settings in target dicts. SYMROOT is a special case, because many other 3506 # settings in target dicts. SYMROOT is a special case, because many other
3482 # Xcode variables depend on it, including variables such as 3507 # Xcode variables depend on it, including variables such as
3483 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 3508 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
3484 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 3509 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
3485 # files to appear (when present) in the UI as actual files and not red 3510 # files to appear (when present) in the UI as actual files and not red
3486 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 3511 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
3487 # and therefore SYMROOT, needs to be set at the project level. 3512 # and therefore SYMROOT, needs to be set at the project level.
3488 'SYMROOT': '<(DEPTH)/xcodebuild', 3513 'SYMROOT': '<(DEPTH)/xcodebuild',
3489 }, 3514 },
3490 } 3515 }
OLDNEW
« no previous file with comments | « base/process_util_posix.cc ('k') | content/app/content_main_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698