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

Side by Side Diff: build/common.gypi

Issue 1331973002: Remove clang type profiler and deep memory profiler. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 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
« no previous file with comments | « base/process/launch_posix.cc ('k') | build/toolchain/android/BUILD.gn » ('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 499 matching lines...) Expand 10 before | Expand all | Expand 10 after
510 510
511 # Use libc++ (third_party/libc++ and third_party/libc++abi) instead of 511 # Use libc++ (third_party/libc++ and third_party/libc++abi) instead of
512 # stdlibc++ as standard library. This is intended to use for instrumented 512 # stdlibc++ as standard library. This is intended to use for instrumented
513 # builds. 513 # builds.
514 'use_custom_libcxx%': 0, 514 'use_custom_libcxx%': 0,
515 515
516 # Use system libc++ instead of the default C++ library, usually libstdc++. 516 # Use system libc++ instead of the default C++ library, usually libstdc++.
517 # This is intended for iOS builds only. 517 # This is intended for iOS builds only.
518 'use_system_libcxx%': 0, 518 'use_system_libcxx%': 0,
519 519
520 # Use a modified version of Clang to intercept allocated types and sizes
521 # for allocated objects. clang_type_profiler=1 implies clang=1.
522 # See http://dev.chromium.org/developers/deep-memory-profiler/cpp-object-t ype-identifier
523 # TODO(dmikurube): Support mac. See http://crbug.com/123758#c11
524 'clang_type_profiler%': 0,
525
526 # Set to true to instrument the code with function call logger. 520 # Set to true to instrument the code with function call logger.
527 # See src/third_party/cygprofile/cyg-profile.cc for details. 521 # See src/third_party/cygprofile/cyg-profile.cc for details.
528 'order_profiling%': 0, 522 'order_profiling%': 0,
529 523
530 # Use the provided profiled order file to link Chrome image with it. 524 # Use the provided profiled order file to link Chrome image with it.
531 # This makes Chrome faster by better using CPU cache when executing code. 525 # This makes Chrome faster by better using CPU cache when executing code.
532 # This is known as PGO (profile guided optimization). 526 # This is known as PGO (profile guided optimization).
533 # See https://sites.google.com/a/google.com/chrome-msk/dev/boot-speed-up-e ffort 527 # See https://sites.google.com/a/google.com/chrome-msk/dev/boot-speed-up-e ffort
534 'order_text_section%' : "", 528 'order_text_section%' : "",
535 529
(...skipping 662 matching lines...) Expand 10 before | Expand all | Expand 10 after
1198 'tsan%': '<(tsan)', 1192 'tsan%': '<(tsan)',
1199 'tsan_blacklist%': '<(tsan_blacklist)', 1193 'tsan_blacklist%': '<(tsan_blacklist)',
1200 'ubsan%': '<(ubsan)', 1194 'ubsan%': '<(ubsan)',
1201 'ubsan_blacklist%': '<(ubsan_blacklist)', 1195 'ubsan_blacklist%': '<(ubsan_blacklist)',
1202 'ubsan_vptr_blacklist%': '<(ubsan_vptr_blacklist)', 1196 'ubsan_vptr_blacklist%': '<(ubsan_vptr_blacklist)',
1203 'ubsan_vptr%': '<(ubsan_vptr)', 1197 'ubsan_vptr%': '<(ubsan_vptr)',
1204 'use_instrumented_libraries%': '<(use_instrumented_libraries)', 1198 'use_instrumented_libraries%': '<(use_instrumented_libraries)',
1205 'use_prebuilt_instrumented_libraries%': '<(use_prebuilt_instrumented_librari es)', 1199 'use_prebuilt_instrumented_libraries%': '<(use_prebuilt_instrumented_librari es)',
1206 'use_custom_libcxx%': '<(use_custom_libcxx)', 1200 'use_custom_libcxx%': '<(use_custom_libcxx)',
1207 'use_system_libcxx%': '<(use_system_libcxx)', 1201 'use_system_libcxx%': '<(use_system_libcxx)',
1208 'clang_type_profiler%': '<(clang_type_profiler)',
1209 'order_profiling%': '<(order_profiling)', 1202 'order_profiling%': '<(order_profiling)',
1210 'order_text_section%': '<(order_text_section)', 1203 'order_text_section%': '<(order_text_section)',
1211 'enable_extensions%': '<(enable_extensions)', 1204 'enable_extensions%': '<(enable_extensions)',
1212 'enable_pdf%': '<(enable_pdf)', 1205 'enable_pdf%': '<(enable_pdf)',
1213 'enable_plugin_installation%': '<(enable_plugin_installation)', 1206 'enable_plugin_installation%': '<(enable_plugin_installation)',
1214 'enable_plugins%': '<(enable_plugins)', 1207 'enable_plugins%': '<(enable_plugins)',
1215 'enable_session_service%': '<(enable_session_service)', 1208 'enable_session_service%': '<(enable_session_service)',
1216 'enable_themes%': '<(enable_themes)', 1209 'enable_themes%': '<(enable_themes)',
1217 'enable_autofill_dialog%': '<(enable_autofill_dialog)', 1210 'enable_autofill_dialog%': '<(enable_autofill_dialog)',
1218 'enable_prod_wallet_service%': '<(enable_prod_wallet_service)', 1211 'enable_prod_wallet_service%': '<(enable_prod_wallet_service)',
(...skipping 1055 matching lines...) Expand 10 before | Expand all | Expand 10 after
2274 # Use a just-built, MSan-instrumented libc++ instead of the system-wide 2267 # Use a just-built, MSan-instrumented libc++ instead of the system-wide
2275 # libstdc++. This is required to avoid false positive reports whenever 2268 # libstdc++. This is required to avoid false positive reports whenever
2276 # the C++ standard library is used. 2269 # the C++ standard library is used.
2277 'use_custom_libcxx%': 1, 2270 'use_custom_libcxx%': 1,
2278 # Running the V8-generated code on an ARM simulator is a powerful hack 2271 # Running the V8-generated code on an ARM simulator is a powerful hack
2279 # that allows the tool to see the memory accesses from JITted code. 2272 # that allows the tool to see the memory accesses from JITted code.
2280 # Without this flag, JS code causes false positive reports from MSan. 2273 # Without this flag, JS code causes false positive reports from MSan.
2281 'v8_target_arch': 'arm64', 2274 'v8_target_arch': 'arm64',
2282 }], 2275 }],
2283 2276
2284 ['OS=="linux" and clang_type_profiler==1', {
2285 'clang%': 1,
2286 'clang_use_chrome_plugins%': 0,
2287 'conditions': [
2288 ['host_arch=="x64"', {
2289 'make_clang_dir%': 'third_party/llvm-allocated-type/Linux_x64',
2290 }],
2291 ['host_arch=="ia32"', {
2292 # 32-bit Clang is unsupported. It may not build. Put your 32-bit
2293 # Clang in this directory at your own risk if needed for some
2294 # purpose (e.g. to compare 32-bit and 64-bit behavior like memory
2295 # usage). Any failure by this compiler should not close the tree.
2296 'make_clang_dir%': 'third_party/llvm-allocated-type/Linux_ia32',
2297 }],
2298 ],
2299 }],
2300
2301 # On valgrind bots, override the optimizer settings so we don't inline too 2277 # On valgrind bots, override the optimizer settings so we don't inline too
2302 # much and make the stacks harder to figure out. 2278 # much and make the stacks harder to figure out.
2303 # 2279 #
2304 # TODO(rnk): Kill off variables that no one else uses and just implement 2280 # TODO(rnk): Kill off variables that no one else uses and just implement
2305 # them under a build_for_tool== condition. 2281 # them under a build_for_tool== condition.
2306 ['build_for_tool=="memcheck" or build_for_tool=="tsan"', { 2282 ['build_for_tool=="memcheck" or build_for_tool=="tsan"', {
2307 # gcc flags 2283 # gcc flags
2308 'mac_debug_optimization': '1', 2284 'mac_debug_optimization': '1',
2309 'mac_release_optimization': '1', 2285 'mac_release_optimization': '1',
2310 'release_optimize': '1', 2286 'release_optimize': '1',
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after
2668 ['(OS=="mac" or OS=="ios") and asan==1', { 2644 ['(OS=="mac" or OS=="ios") and asan==1', {
2669 'dependencies': [ 2645 'dependencies': [
2670 '<(DEPTH)/build/mac/asan.gyp:asan_dynamic_runtime', 2646 '<(DEPTH)/build/mac/asan.gyp:asan_dynamic_runtime',
2671 ], 2647 ],
2672 }], 2648 }],
2673 ['OS=="win" and asan==1 and component=="shared_library"', { 2649 ['OS=="win" and asan==1 and component=="shared_library"', {
2674 'dependencies': [ 2650 'dependencies': [
2675 '<(DEPTH)/build/win/asan.gyp:asan_dynamic_runtime', 2651 '<(DEPTH)/build/win/asan.gyp:asan_dynamic_runtime',
2676 ], 2652 ],
2677 }], 2653 }],
2678 ['OS=="linux" and use_allocator!="none" and clang_type_profiler==1', {
2679 'cflags_cc!': ['-fno-rtti'],
2680 'cflags_cc+': [
2681 '-frtti',
2682 '-gline-tables-only',
2683 '-fintercept-allocation-functions',
2684 ],
2685 'defines': ['TYPE_PROFILING'],
2686 'dependencies': [
2687 '<(DEPTH)/base/allocator/allocator.gyp:type_profiler',
2688 ],
2689 }],
2690 ['branding=="Chrome"', { 2654 ['branding=="Chrome"', {
2691 'defines': ['GOOGLE_CHROME_BUILD'], 2655 'defines': ['GOOGLE_CHROME_BUILD'],
2692 }, { # else: branding!="Chrome" 2656 }, { # else: branding!="Chrome"
2693 'defines': ['CHROMIUM_BUILD'], 2657 'defines': ['CHROMIUM_BUILD'],
2694 }], 2658 }],
2695 ['OS=="mac" and component=="shared_library"', { 2659 ['OS=="mac" and component=="shared_library"', {
2696 'xcode_settings': { 2660 'xcode_settings': {
2697 'DYLIB_INSTALL_NAME_BASE': '@rpath', 2661 'DYLIB_INSTALL_NAME_BASE': '@rpath',
2698 'LD_RUNPATH_SEARCH_PATHS': [ 2662 'LD_RUNPATH_SEARCH_PATHS': [
2699 # For unbundled binaries. 2663 # For unbundled binaries.
(...skipping 3636 matching lines...) Expand 10 before | Expand all | Expand 10 after
6336 # settings in target dicts. SYMROOT is a special case, because many other 6300 # settings in target dicts. SYMROOT is a special case, because many other
6337 # Xcode variables depend on it, including variables such as 6301 # Xcode variables depend on it, including variables such as
6338 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 6302 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
6339 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 6303 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
6340 # files to appear (when present) in the UI as actual files and not red 6304 # files to appear (when present) in the UI as actual files and not red
6341 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 6305 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
6342 # and therefore SYMROOT, needs to be set at the project level. 6306 # and therefore SYMROOT, needs to be set at the project level.
6343 'SYMROOT': '<(DEPTH)/xcodebuild', 6307 'SYMROOT': '<(DEPTH)/xcodebuild',
6344 }, 6308 },
6345 } 6309 }
OLDNEW
« no previous file with comments | « base/process/launch_posix.cc ('k') | build/toolchain/android/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698