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

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

Issue 1334002: Add the linux_use_heapchecker GYP variable that should turn the tcmalloc heap... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 9 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/leak_annotations.h » ('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) 2009 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2009 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 }, 9 },
10 'targets': [ 10 'targets': [
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 '-fvisibility=hidden', 325 '-fvisibility=hidden',
326 ], 326 ],
327 'link_settings': { 327 'link_settings': {
328 'ldflags': [ 328 'ldflags': [
329 # Don't let linker rip this symbol out, otherwise the heap&cpu 329 # Don't let linker rip this symbol out, otherwise the heap&cpu
330 # profilers will not initialize properly on startup. 330 # profilers will not initialize properly on startup.
331 '-Wl,-uIsHeapProfilerRunning,-uProfilerStart', 331 '-Wl,-uIsHeapProfilerRunning,-uProfilerStart',
332 # Do the same for heap leak checker. 332 # Do the same for heap leak checker.
333 '-Wl,-u_Z21InitialMallocHook_NewPKvj,-u_Z22InitialMallocHook_MMapP KvS0_jiiix,-u_Z22InitialMallocHook_SbrkPKvi', 333 '-Wl,-u_Z21InitialMallocHook_NewPKvj,-u_Z22InitialMallocHook_MMapP KvS0_jiiix,-u_Z22InitialMallocHook_SbrkPKvi',
334 '-Wl,-u_Z21InitialMallocHook_NewPKvm,-u_Z22InitialMallocHook_MMapP KvS0_miiil,-u_Z22InitialMallocHook_SbrkPKvl', 334 '-Wl,-u_Z21InitialMallocHook_NewPKvm,-u_Z22InitialMallocHook_MMapP KvS0_miiil,-u_Z22InitialMallocHook_SbrkPKvl',
335 ]},
336 }],
337 [ 'linux_use_heapchecker==0', {
338 # Do not compile and link the heapchecker source.
339 'sources!': [
340 '<(tcmalloc_dir)/src/heap-checker-bcad.cc',
341 '<(tcmalloc_dir)/src/heap-checker.cc',
335 ], 342 ],
336 }, 343 # Disable the heap checker in tcmalloc.
337 }], 344 'cflags': [
345 '-DNO_HEAP_CHECK',
346 ],
347 }],
338 ], 348 ],
339 }, 349 },
340 { 350 {
341 'target_name': 'allocator_unittests', 351 'target_name': 'allocator_unittests',
342 'type': 'executable', 352 'type': 'executable',
343 'dependencies': [ 353 'dependencies': [
344 'allocator', 354 'allocator',
345 '../../testing/gtest.gyp:gtest', 355 '../../testing/gtest.gyp:gtest',
346 ], 356 ],
347 'include_dirs': [ 357 'include_dirs': [
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
383 ], 393 ],
384 }], 394 }],
385 ], 395 ],
386 } 396 }
387 397
388 # Local Variables: 398 # Local Variables:
389 # tab-width:2 399 # tab-width:2
390 # indent-tabs-mode:nil 400 # indent-tabs-mode:nil
391 # End: 401 # End:
392 # vim: set expandtab tabstop=2 shiftwidth=2: 402 # vim: set expandtab tabstop=2 shiftwidth=2:
OLDNEW
« no previous file with comments | « no previous file | base/leak_annotations.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698