| OLD | NEW |
| 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 { | 5 { |
| 6 'variables': { | 6 'variables': { |
| 7 'jemalloc_dir': '../../third_party/jemalloc/chromium', | 7 'jemalloc_dir': '../../third_party/jemalloc/chromium', |
| 8 'tcmalloc_dir': '../../third_party/tcmalloc/chromium', | 8 'tcmalloc_dir': '../../third_party/tcmalloc/chromium', |
| 9 'use_vtable_verify%': 0, | 9 'use_vtable_verify%': 0, |
| 10 }, | 10 }, |
| (...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 246 '<(tcmalloc_dir)/src/getpc.h', | 246 '<(tcmalloc_dir)/src/getpc.h', |
| 247 '<(tcmalloc_dir)/src/gperftools/heap-checker.h', | 247 '<(tcmalloc_dir)/src/gperftools/heap-checker.h', |
| 248 '<(tcmalloc_dir)/src/gperftools/heap-profiler.h', | 248 '<(tcmalloc_dir)/src/gperftools/heap-profiler.h', |
| 249 '<(tcmalloc_dir)/src/gperftools/malloc_extension.h', | 249 '<(tcmalloc_dir)/src/gperftools/malloc_extension.h', |
| 250 '<(tcmalloc_dir)/src/gperftools/malloc_extension_c.h', | 250 '<(tcmalloc_dir)/src/gperftools/malloc_extension_c.h', |
| 251 '<(tcmalloc_dir)/src/gperftools/malloc_hook.h', | 251 '<(tcmalloc_dir)/src/gperftools/malloc_hook.h', |
| 252 '<(tcmalloc_dir)/src/gperftools/malloc_hook_c.h', | 252 '<(tcmalloc_dir)/src/gperftools/malloc_hook_c.h', |
| 253 '<(tcmalloc_dir)/src/gperftools/profiler.h', | 253 '<(tcmalloc_dir)/src/gperftools/profiler.h', |
| 254 '<(tcmalloc_dir)/src/gperftools/stacktrace.h', | 254 '<(tcmalloc_dir)/src/gperftools/stacktrace.h', |
| 255 '<(tcmalloc_dir)/src/gperftools/tcmalloc.h', | 255 '<(tcmalloc_dir)/src/gperftools/tcmalloc.h', |
| 256 '<(tcmalloc_dir)/src/heap-checker-bcad.cc', |
| 257 '<(tcmalloc_dir)/src/heap-checker.cc', |
| 256 '<(tcmalloc_dir)/src/libc_override.h', | 258 '<(tcmalloc_dir)/src/libc_override.h', |
| 257 '<(tcmalloc_dir)/src/libc_override_gcc_and_weak.h', | 259 '<(tcmalloc_dir)/src/libc_override_gcc_and_weak.h', |
| 258 '<(tcmalloc_dir)/src/libc_override_glibc.h', | 260 '<(tcmalloc_dir)/src/libc_override_glibc.h', |
| 259 '<(tcmalloc_dir)/src/libc_override_osx.h', | 261 '<(tcmalloc_dir)/src/libc_override_osx.h', |
| 260 '<(tcmalloc_dir)/src/libc_override_redefine.h', | 262 '<(tcmalloc_dir)/src/libc_override_redefine.h', |
| 261 '<(tcmalloc_dir)/src/malloc_hook_mmap_freebsd.h', | 263 '<(tcmalloc_dir)/src/malloc_hook_mmap_freebsd.h', |
| 262 '<(tcmalloc_dir)/src/malloc_hook_mmap_linux.h', | 264 '<(tcmalloc_dir)/src/malloc_hook_mmap_linux.h', |
| 263 '<(tcmalloc_dir)/src/memfs_malloc.cc', | 265 '<(tcmalloc_dir)/src/memfs_malloc.cc', |
| 264 '<(tcmalloc_dir)/src/packed-cache-inl.h', | 266 '<(tcmalloc_dir)/src/packed-cache-inl.h', |
| 265 '<(tcmalloc_dir)/src/page_heap_allocator.h', | 267 '<(tcmalloc_dir)/src/page_heap_allocator.h', |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 318 ['disable_debugallocation==0 and OS!="win"', { | 320 ['disable_debugallocation==0 and OS!="win"', { |
| 319 'defines': [ | 321 'defines': [ |
| 320 # Use debugallocation for Debug builds to catch problems early | 322 # Use debugallocation for Debug builds to catch problems early |
| 321 # and cleanly, http://crbug.com/30715 . | 323 # and cleanly, http://crbug.com/30715 . |
| 322 'TCMALLOC_FOR_DEBUGALLOCATION', | 324 'TCMALLOC_FOR_DEBUGALLOCATION', |
| 323 ], | 325 ], |
| 324 }], | 326 }], |
| 325 ], | 327 ], |
| 326 }, | 328 }, |
| 327 }, | 329 }, |
| 330 # Disable the heap checker in tcmalloc. |
| 331 'defines': [ |
| 332 'NO_HEAP_CHECK', |
| 333 ], |
| 328 'conditions': [ | 334 'conditions': [ |
| 329 ['OS=="linux" and clang_type_profiler==1', { | 335 ['OS=="linux" and clang_type_profiler==1', { |
| 330 'dependencies': [ | 336 'dependencies': [ |
| 331 'type_profiler_tcmalloc', | 337 'type_profiler_tcmalloc', |
| 332 ], | 338 ], |
| 333 # It is undoing dependencies and cflags_cc for type_profiler which | 339 # It is undoing dependencies and cflags_cc for type_profiler which |
| 334 # build/common.gypi injects into all targets. | 340 # build/common.gypi injects into all targets. |
| 335 'dependencies!': [ | 341 'dependencies!': [ |
| 336 'type_profiler', | 342 'type_profiler', |
| 337 ], | 343 ], |
| (...skipping 26 matching lines...) Expand all Loading... |
| 364 '<(tcmalloc_dir)/src/base/vdso_support.h', | 370 '<(tcmalloc_dir)/src/base/vdso_support.h', |
| 365 '<(tcmalloc_dir)/src/maybe_threads.cc', | 371 '<(tcmalloc_dir)/src/maybe_threads.cc', |
| 366 '<(tcmalloc_dir)/src/maybe_threads.h', | 372 '<(tcmalloc_dir)/src/maybe_threads.h', |
| 367 '<(tcmalloc_dir)/src/symbolize.h', | 373 '<(tcmalloc_dir)/src/symbolize.h', |
| 368 '<(tcmalloc_dir)/src/system-alloc.cc', | 374 '<(tcmalloc_dir)/src/system-alloc.cc', |
| 369 '<(tcmalloc_dir)/src/system-alloc.h', | 375 '<(tcmalloc_dir)/src/system-alloc.h', |
| 370 | 376 |
| 371 # included by allocator_shim.cc | 377 # included by allocator_shim.cc |
| 372 'debugallocation_shim.cc', | 378 'debugallocation_shim.cc', |
| 373 | 379 |
| 374 # heap-checker/cpuprofiler | 380 # cpuprofiler |
| 375 '<(tcmalloc_dir)/src/base/thread_lister.c', | 381 '<(tcmalloc_dir)/src/base/thread_lister.c', |
| 376 '<(tcmalloc_dir)/src/base/thread_lister.h', | 382 '<(tcmalloc_dir)/src/base/thread_lister.h', |
| 377 '<(tcmalloc_dir)/src/heap-checker-bcad.cc', | |
| 378 '<(tcmalloc_dir)/src/heap-checker.cc', | |
| 379 '<(tcmalloc_dir)/src/profiledata.cc', | 383 '<(tcmalloc_dir)/src/profiledata.cc', |
| 380 '<(tcmalloc_dir)/src/profiledata.h', | 384 '<(tcmalloc_dir)/src/profiledata.h', |
| 381 '<(tcmalloc_dir)/src/profile-handler.cc', | 385 '<(tcmalloc_dir)/src/profile-handler.cc', |
| 382 '<(tcmalloc_dir)/src/profile-handler.h', | 386 '<(tcmalloc_dir)/src/profile-handler.h', |
| 383 '<(tcmalloc_dir)/src/profiler.cc', | 387 '<(tcmalloc_dir)/src/profiler.cc', |
| 384 ], | 388 ], |
| 385 }], | 389 }], |
| 386 ['OS=="linux" or OS=="freebsd" or OS=="solaris" or OS=="android"', { | 390 ['OS=="linux" or OS=="freebsd" or OS=="solaris" or OS=="android"', { |
| 387 'sources!': [ | 391 'sources!': [ |
| 388 '<(tcmalloc_dir)/src/system-alloc.h', | 392 '<(tcmalloc_dir)/src/system-alloc.h', |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 425 # Need to distinguish a non-SDK build for Android WebView | 429 # Need to distinguish a non-SDK build for Android WebView |
| 426 # due to differences in C include files. | 430 # due to differences in C include files. |
| 427 ['OS=="android" and android_webview_build==1', { | 431 ['OS=="android" and android_webview_build==1', { |
| 428 'defines': ['ANDROID_NON_SDK_BUILD'], | 432 'defines': ['ANDROID_NON_SDK_BUILD'], |
| 429 }], | 433 }], |
| 430 [ 'use_vtable_verify==1', { | 434 [ 'use_vtable_verify==1', { |
| 431 'cflags': [ | 435 'cflags': [ |
| 432 '-fvtable-verify=preinit', | 436 '-fvtable-verify=preinit', |
| 433 ], | 437 ], |
| 434 }], | 438 }], |
| 435 [ 'linux_keep_shadow_stacks==1', { | |
| 436 'sources': [ | |
| 437 '<(tcmalloc_dir)/src/linux_shadow_stacks.cc', | |
| 438 '<(tcmalloc_dir)/src/linux_shadow_stacks.h', | |
| 439 '<(tcmalloc_dir)/src/stacktrace_shadow-inl.h', | |
| 440 ], | |
| 441 'cflags': [ | |
| 442 '-finstrument-functions', | |
| 443 ], | |
| 444 'defines': [ | |
| 445 'KEEP_SHADOW_STACKS', | |
| 446 ], | |
| 447 }], | |
| 448 [ 'linux_use_heapchecker==0', { | |
| 449 # Do not compile and link the heapchecker source. | |
| 450 'sources!': [ | |
| 451 '<(tcmalloc_dir)/src/heap-checker-bcad.cc', | |
| 452 '<(tcmalloc_dir)/src/heap-checker.cc', | |
| 453 ], | |
| 454 # Disable the heap checker in tcmalloc. | |
| 455 'defines': [ | |
| 456 'NO_HEAP_CHECK', | |
| 457 ], | |
| 458 }], | |
| 459 ['order_profiling != 0', { | 439 ['order_profiling != 0', { |
| 460 'target_conditions' : [ | 440 'target_conditions' : [ |
| 461 ['_toolset=="target"', { | 441 ['_toolset=="target"', { |
| 462 'cflags!': [ '-finstrument-functions' ], | 442 'cflags!': [ '-finstrument-functions' ], |
| 463 }], | 443 }], |
| 464 ], | 444 ], |
| 465 }], | 445 }], |
| 466 ], | 446 ], |
| 467 }, | 447 }, |
| 468 { | 448 { |
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 660 'sources': [ | 640 'sources': [ |
| 661 'type_profiler_map_unittests.cc', | 641 'type_profiler_map_unittests.cc', |
| 662 '<(tcmalloc_dir)/src/gperftools/type_profiler_map.h', | 642 '<(tcmalloc_dir)/src/gperftools/type_profiler_map.h', |
| 663 '<(tcmalloc_dir)/src/type_profiler_map.cc', | 643 '<(tcmalloc_dir)/src/type_profiler_map.cc', |
| 664 ], | 644 ], |
| 665 }, | 645 }, |
| 666 ], | 646 ], |
| 667 }], | 647 }], |
| 668 ], | 648 ], |
| 669 } | 649 } |
| OLD | NEW |