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

Side by Side Diff: base/allocator/allocator.gyp

Issue 10411047: Type profiler by intercepting 'new' and 'delete' expressions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: reflected maruel's comment. Ready for review. Created 8 years, 4 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 { 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 },
11 'target_defaults': {
12 'conditions': [
13 ['OS=="linux" and clang_profiling_allocated_type==1', {
14 'dependencies!': [
15 'allocated_type_profiler',
16 ],
17 'cflags_cc!': [
18 '-fintercept-allocation-functions',
19 '-include ../../base/allocator/allocated_type_profiler.h',
20 ],
21 }],
22 ],
23 },
11 'targets': [ 24 'targets': [
12 { 25 {
13 'target_name': 'allocator', 26 'target_name': 'allocator',
14 'type': 'static_library', 27 'type': 'static_library',
15 # Make sure the allocation library is optimized to 28 # Make sure the allocation library is optimized to
16 # the hilt in official builds. 29 # the hilt in official builds.
17 'variables': { 30 'variables': {
18 'optimize': 'max', 31 'optimize': 'max',
19 }, 32 },
20 'include_dirs': [ 33 'include_dirs': [
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 'configurations': { 309 'configurations': {
297 'Debug_Base': { 310 'Debug_Base': {
298 'msvs_settings': { 311 'msvs_settings': {
299 'VCCLCompilerTool': { 312 'VCCLCompilerTool': {
300 'RuntimeLibrary': '0', 313 'RuntimeLibrary': '0',
301 }, 314 },
302 }, 315 },
303 }, 316 },
304 }, 317 },
305 'conditions': [ 318 'conditions': [
319 ['OS=="linux" and clang_profiling_allocated_type==1', {
320 'dependencies': [
321 'allocated_type_profiler_tcmalloc',
322 ],
323 }],
306 ['OS=="win"', { 324 ['OS=="win"', {
307 'defines': [ 325 'defines': [
308 'PERFTOOLS_DLL_DECL=', 326 'PERFTOOLS_DLL_DECL=',
309 ], 327 ],
310 'defines!': [ 328 'defines!': [
311 # tcmalloc source files unconditionally define this, remove it from 329 # tcmalloc source files unconditionally define this, remove it from
312 # the list of defines that common.gypi defines globally. 330 # the list of defines that common.gypi defines globally.
313 'NOMINMAX', 331 'NOMINMAX',
314 ], 332 ],
315 'dependencies': [ 333 'dependencies': [
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
534 '<(tcmalloc_dir)/src', 552 '<(tcmalloc_dir)/src',
535 ], 553 ],
536 'dependencies': [ 554 'dependencies': [
537 '../../testing/gtest.gyp:gtest', 555 '../../testing/gtest.gyp:gtest',
538 '../base.gyp:base', 556 '../base.gyp:base',
539 'allocator', 557 'allocator',
540 ], 558 ],
541 }, 559 },
542 ], 560 ],
543 }], 561 }],
562 ['OS=="linux" and clang_profiling_allocated_type==1', {
563 'targets': [
564 {
565 'target_name': 'allocated_type_profiler',
566 'type': 'static_library',
567 'include_dirs': [
568 '.',
569 '<(tcmalloc_dir)/src/base',
570 '<(tcmalloc_dir)/src',
571 '../..',
572 ],
573 'sources': [
574 'allocated_type_profiler.cc',
575 'allocated_type_profiler.h',
576 'allocated_type_profiler_control.h',
577 ],
578 },
579 {
580 'target_name': 'allocated_type_profiler_tcmalloc',
581 'type': 'static_library',
582 'include_dirs': [
583 '.',
584 '<(tcmalloc_dir)/src/base',
585 '<(tcmalloc_dir)/src',
586 '../..',
587 ],
588 'sources': [
589 'allocated_type_profiler_tcmalloc.cc',
590 'allocated_type_profiler_tcmalloc.h',
591 '<(tcmalloc_dir)/src/allocated_type_map.cc',
592 '<(tcmalloc_dir)/src/gperftools/allocated_type_map.h',
593 ],
594 },
595 ],
596 }],
544 ], 597 ],
545 } 598 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698