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

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: fixed for Ryan's comments #78 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
« no previous file with comments | « no previous file | base/allocator/type_profiler.h » ('j') | base/allocator/type_profiler.h » ('J')
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 { 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 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 'configurations': { 296 'configurations': {
297 'Debug_Base': { 297 'Debug_Base': {
298 'msvs_settings': { 298 'msvs_settings': {
299 'VCCLCompilerTool': { 299 'VCCLCompilerTool': {
300 'RuntimeLibrary': '0', 300 'RuntimeLibrary': '0',
301 }, 301 },
302 }, 302 },
303 }, 303 },
304 }, 304 },
305 'conditions': [ 305 'conditions': [
306 ['OS=="linux" and clang_type_profiler==1', {
307 'dependencies': [
308 'type_profiler_tcmalloc',
309 ],
310 # It is undoing dependencies and cflags_cc for type_profiler which
311 # build/common.gypi injects into all targets.
312 'dependencies!': [
313 'type_profiler',
314 ],
315 'cflags_cc!': [
316 '-fintercept-allocation-functions',
317 ],
318 }],
306 ['OS=="win"', { 319 ['OS=="win"', {
307 'defines': [ 320 'defines': [
308 'PERFTOOLS_DLL_DECL=', 321 'PERFTOOLS_DLL_DECL=',
309 ], 322 ],
310 'defines!': [ 323 'defines!': [
311 # tcmalloc source files unconditionally define this, remove it from 324 # tcmalloc source files unconditionally define this, remove it from
312 # the list of defines that common.gypi defines globally. 325 # the list of defines that common.gypi defines globally.
313 'NOMINMAX', 326 'NOMINMAX',
314 ], 327 ],
315 'dependencies': [ 328 'dependencies': [
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
459 'target_name': 'allocator_extension_thunks', 472 'target_name': 'allocator_extension_thunks',
460 'type': 'static_library', 473 'type': 'static_library',
461 'sources': [ 474 'sources': [
462 'allocator_extension_thunks.cc', 475 'allocator_extension_thunks.cc',
463 'allocator_extension_thunks.h', 476 'allocator_extension_thunks.h',
464 ], 477 ],
465 'toolsets': ['host', 'target'], 478 'toolsets': ['host', 'target'],
466 'include_dirs': [ 479 'include_dirs': [
467 '../../' 480 '../../'
468 ], 481 ],
482 'conditions': [
483 ['OS=="linux" and clang_type_profiler==1', {
484 # It is undoing dependencies and cflags_cc for type_profiler which
485 # build/common.gypi injects into all targets.
486 'dependencies!': [
487 'type_profiler',
488 ],
489 'cflags_cc!': [
490 '-fintercept-allocation-functions',
491 ],
492 }],
493 ],
469 }, 494 },
470 ], 495 ],
471 'conditions': [ 496 'conditions': [
472 ['OS=="win"', { 497 ['OS=="win"', {
473 'targets': [ 498 'targets': [
474 { 499 {
475 'target_name': 'libcmt', 500 'target_name': 'libcmt',
476 'type': 'none', 501 'type': 'none',
477 'actions': [ 502 'actions': [
478 { 503 {
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
541 '<(tcmalloc_dir)/src', 566 '<(tcmalloc_dir)/src',
542 ], 567 ],
543 'dependencies': [ 568 'dependencies': [
544 '../../testing/gtest.gyp:gtest', 569 '../../testing/gtest.gyp:gtest',
545 '../base.gyp:base', 570 '../base.gyp:base',
546 'allocator', 571 'allocator',
547 ], 572 ],
548 }, 573 },
549 ], 574 ],
550 }], 575 }],
576 ['OS=="linux" and clang_type_profiler==1', {
577 # Some targets in this section undo dependencies and cflags_cc for
578 # type_profiler which build/common.gypi injects into all targets.
579 'targets': [
580 {
581 'target_name': 'type_profiler',
582 'type': 'static_library',
583 'dependencies!': [
584 'type_profiler',
585 ],
586 'cflags_cc!': [
587 '-fintercept-allocation-functions',
588 ],
589 'include_dirs': [
590 '../..',
591 ],
592 'sources': [
593 'type_profiler.cc',
594 'type_profiler.h',
595 'type_profiler_control.h',
596 ],
597 },
598 {
599 'target_name': 'type_profiler_tcmalloc',
600 'type': 'static_library',
601 'dependencies!': [
602 'type_profiler',
603 ],
604 'cflags_cc!': [
605 '-fintercept-allocation-functions',
606 ],
607 'include_dirs': [
608 '<(tcmalloc_dir)/src',
609 '../..',
Ryan Sleevi 2012/09/13 09:13:25 Why the ../../ include (which is effectively <(DEP
Dai Mikurube (NOT FULLTIME) 2012/09/13 10:45:04 Without "../..", I cannot include base/allocator/t
Ryan Sleevi 2012/09/14 23:11:05 Thank you for your clarification. It seems that m
Dai Mikurube (NOT FULLTIME) 2012/09/17 03:57:27 Thanks for the information. I keep it as is.
610 ],
611 'sources': [
612 'type_profiler_tcmalloc.cc',
613 'type_profiler_tcmalloc.h',
614 '<(tcmalloc_dir)/src/type_profiler_map.cc',
615 '<(tcmalloc_dir)/src/gperftools/type_profiler_map.h',
Ryan Sleevi 2012/09/13 09:13:25 nit: sort
Dai Mikurube (NOT FULLTIME) 2012/09/13 10:45:04 Done.
616 ],
617 },
618 {
619 'target_name': 'type_profiler_unittests',
620 'type': 'executable',
621 'dependencies': [
622 '../../testing/gtest.gyp:gtest',
623 '../base.gyp:base',
624 'allocator',
625 'type_profiler_tcmalloc',
626 ],
627 'include_dirs': [
628 '../..',
629 ],
630 'sources': [
631 'type_profiler_control.cc',
632 'type_profiler_control.h',
633 'type_profiler_unittests.cc',
634 ],
635 },
636 {
637 'target_name': 'type_profiler_map_unittests',
638 'type': 'executable',
639 'dependencies': [
640 '../../testing/gtest.gyp:gtest',
641 '../base.gyp:base',
642 'allocator',
643 ],
644 'dependencies!': [
645 'type_profiler',
646 ],
647 'cflags_cc!': [
648 '-fintercept-allocation-functions',
649 ],
650 'include_dirs': [
651 '<(tcmalloc_dir)/src',
652 '../..',
653 ],
654 'sources': [
655 'type_profiler_map_unittests.cc',
656 '<(tcmalloc_dir)/src/type_profiler_map.cc',
657 '<(tcmalloc_dir)/src/gperftools/type_profiler_map.h',
Ryan Sleevi 2012/09/13 09:13:25 nit: sort
Dai Mikurube (NOT FULLTIME) 2012/09/13 10:45:04 Done.
658 ],
659 },
660 ],
661 }],
551 ], 662 ],
552 } 663 }
OLDNEW
« no previous file with comments | « no previous file | base/allocator/type_profiler.h » ('j') | base/allocator/type_profiler.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698