| OLD | NEW |
| 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2013 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 import("//build/buildflag_header.gni") | 5 import("//build/buildflag_header.gni") |
| 6 import("//build/config/allocator.gni") | 6 import("//build/config/allocator.gni") |
| 7 import("//build/config/compiler/compiler.gni") | 7 import("//build/config/compiler/compiler.gni") |
| 8 | 8 |
| 9 declare_args() { | 9 declare_args() { |
| 10 # Provide a way to force disable debugallocation in Debug builds, | 10 # Provide a way to force disable debugallocation in Debug builds, |
| (...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 215 "$tcmalloc_dir/src/base", | 215 "$tcmalloc_dir/src/base", |
| 216 "$tcmalloc_dir/src", | 216 "$tcmalloc_dir/src", |
| 217 ] | 217 ] |
| 218 | 218 |
| 219 configs -= [ "//build/config/compiler:chromium_code" ] | 219 configs -= [ "//build/config/compiler:chromium_code" ] |
| 220 configs += [ | 220 configs += [ |
| 221 "//build/config/compiler:no_chromium_code", | 221 "//build/config/compiler:no_chromium_code", |
| 222 ":tcmalloc_flags", | 222 ":tcmalloc_flags", |
| 223 ] | 223 ] |
| 224 | 224 |
| 225 # TODO(crbug.com/633719) Make tcmalloc work with AFDO if possible. |
| 226 configs -= [ "//build/config/compiler:afdo" ] |
| 227 |
| 225 deps = [] | 228 deps = [] |
| 226 | 229 |
| 227 if (enable_profiling) { | 230 if (enable_profiling) { |
| 228 sources += [ | 231 sources += [ |
| 229 "$tcmalloc_dir/src/base/thread_lister.c", | 232 "$tcmalloc_dir/src/base/thread_lister.c", |
| 230 "$tcmalloc_dir/src/base/thread_lister.h", | 233 "$tcmalloc_dir/src/base/thread_lister.h", |
| 231 "$tcmalloc_dir/src/profile-handler.cc", | 234 "$tcmalloc_dir/src/profile-handler.cc", |
| 232 "$tcmalloc_dir/src/profile-handler.h", | 235 "$tcmalloc_dir/src/profile-handler.h", |
| 233 "$tcmalloc_dir/src/profiledata.cc", | 236 "$tcmalloc_dir/src/profiledata.cc", |
| 234 "$tcmalloc_dir/src/profiledata.h", | 237 "$tcmalloc_dir/src/profiledata.h", |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 332 sources += [ "allocator_shim_default_dispatch_to_glibc.cc" ] | 335 sources += [ "allocator_shim_default_dispatch_to_glibc.cc" ] |
| 333 } else if (is_android && use_allocator == "none") { | 336 } else if (is_android && use_allocator == "none") { |
| 334 sources += [ | 337 sources += [ |
| 335 "allocator_shim_default_dispatch_to_linker_wrapped_symbols.cc", | 338 "allocator_shim_default_dispatch_to_linker_wrapped_symbols.cc", |
| 336 "allocator_shim_override_linker_wrapped_symbols.h", | 339 "allocator_shim_override_linker_wrapped_symbols.h", |
| 337 ] | 340 ] |
| 338 all_dependent_configs = [ ":wrap_malloc_symbols" ] | 341 all_dependent_configs = [ ":wrap_malloc_symbols" ] |
| 339 } | 342 } |
| 340 } | 343 } |
| 341 } | 344 } |
| OLD | NEW |