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

Side by Side Diff: base/BUILD.gn

Issue 2273703003: Hook memory tracing into Windows heap shim. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address Primiano's nits. Created 4 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
« no previous file with comments | « no previous file | base/trace_event/malloc_dump_provider.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) 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 # HOW TO WRITE CONDITIONALS IN THIS FILE 5 # HOW TO WRITE CONDITIONALS IN THIS FILE
6 # ====================================== 6 # ======================================
7 # 7 #
8 # In many other places, one would write a conditional that expresses all the 8 # In many other places, one would write a conditional that expresses all the
9 # cases when a source file is used or unused, and then either add or subtract 9 # cases when a source file is used or unused, and then either add or subtract
10 # it from the sources list in that case 10 # it from the sources list in that case
(...skipping 892 matching lines...) Expand 10 before | Expand all | Expand 10 after
903 "trace_event/heap_profiler_allocation_register_posix.cc", 903 "trace_event/heap_profiler_allocation_register_posix.cc",
904 "trace_event/heap_profiler_allocation_register_win.cc", 904 "trace_event/heap_profiler_allocation_register_win.cc",
905 "trace_event/heap_profiler_heap_dump_writer.cc", 905 "trace_event/heap_profiler_heap_dump_writer.cc",
906 "trace_event/heap_profiler_heap_dump_writer.h", 906 "trace_event/heap_profiler_heap_dump_writer.h",
907 "trace_event/heap_profiler_stack_frame_deduplicator.cc", 907 "trace_event/heap_profiler_stack_frame_deduplicator.cc",
908 "trace_event/heap_profiler_stack_frame_deduplicator.h", 908 "trace_event/heap_profiler_stack_frame_deduplicator.h",
909 "trace_event/heap_profiler_type_name_deduplicator.cc", 909 "trace_event/heap_profiler_type_name_deduplicator.cc",
910 "trace_event/heap_profiler_type_name_deduplicator.h", 910 "trace_event/heap_profiler_type_name_deduplicator.h",
911 "trace_event/java_heap_dump_provider_android.cc", 911 "trace_event/java_heap_dump_provider_android.cc",
912 "trace_event/java_heap_dump_provider_android.h", 912 "trace_event/java_heap_dump_provider_android.h",
913 "trace_event/malloc_dump_provider.cc",
914 "trace_event/malloc_dump_provider.h",
913 "trace_event/memory_allocator_dump.cc", 915 "trace_event/memory_allocator_dump.cc",
914 "trace_event/memory_allocator_dump.h", 916 "trace_event/memory_allocator_dump.h",
915 "trace_event/memory_allocator_dump_guid.cc", 917 "trace_event/memory_allocator_dump_guid.cc",
916 "trace_event/memory_allocator_dump_guid.h", 918 "trace_event/memory_allocator_dump_guid.h",
917 "trace_event/memory_dump_manager.cc", 919 "trace_event/memory_dump_manager.cc",
918 "trace_event/memory_dump_manager.h", 920 "trace_event/memory_dump_manager.h",
919 "trace_event/memory_dump_provider.h", 921 "trace_event/memory_dump_provider.h",
920 "trace_event/memory_dump_request_args.cc", 922 "trace_event/memory_dump_request_args.cc",
921 "trace_event/memory_dump_request_args.h", 923 "trace_event/memory_dump_request_args.h",
922 "trace_event/memory_dump_session_state.cc", 924 "trace_event/memory_dump_session_state.cc",
(...skipping 24 matching lines...) Expand all
947 "trace_event/trace_event_synthetic_delay.h", 949 "trace_event/trace_event_synthetic_delay.h",
948 "trace_event/trace_event_system_stats_monitor.cc", 950 "trace_event/trace_event_system_stats_monitor.cc",
949 "trace_event/trace_event_system_stats_monitor.h", 951 "trace_event/trace_event_system_stats_monitor.h",
950 "trace_event/trace_log.cc", 952 "trace_event/trace_log.cc",
951 "trace_event/trace_log.h", 953 "trace_event/trace_log.h",
952 "trace_event/trace_log_constants.cc", 954 "trace_event/trace_log_constants.cc",
953 "trace_event/trace_sampling_thread.cc", 955 "trace_event/trace_sampling_thread.cc",
954 "trace_event/trace_sampling_thread.h", 956 "trace_event/trace_sampling_thread.h",
955 "trace_event/tracing_agent.cc", 957 "trace_event/tracing_agent.cc",
956 "trace_event/tracing_agent.h", 958 "trace_event/tracing_agent.h",
957 "trace_event/winheap_dump_provider_win.cc",
958 "trace_event/winheap_dump_provider_win.h",
959 "tracked_objects.cc", 959 "tracked_objects.cc",
960 "tracked_objects.h", 960 "tracked_objects.h",
961 "tracking_info.cc", 961 "tracking_info.cc",
962 "tracking_info.h", 962 "tracking_info.h",
963 "tuple.h", 963 "tuple.h",
964 "value_conversions.cc", 964 "value_conversions.cc",
965 "value_conversions.h", 965 "value_conversions.h",
966 "values.cc", 966 "values.cc",
967 "values.h", 967 "values.h",
968 "version.cc", 968 "version.cc",
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
1075 sources += [ 1075 sources += [
1076 "debug/proc_maps_linux.cc", 1076 "debug/proc_maps_linux.cc",
1077 "files/file_path_watcher_linux.cc", 1077 "files/file_path_watcher_linux.cc",
1078 "posix/unix_domain_socket_linux.cc", 1078 "posix/unix_domain_socket_linux.cc",
1079 "process/internal_linux.cc", 1079 "process/internal_linux.cc",
1080 "process/memory_linux.cc", 1080 "process/memory_linux.cc",
1081 "process/process_handle_linux.cc", 1081 "process/process_handle_linux.cc",
1082 "process/process_iterator_linux.cc", 1082 "process/process_iterator_linux.cc",
1083 "process/process_metrics_linux.cc", 1083 "process/process_metrics_linux.cc",
1084 "sys_info_linux.cc", 1084 "sys_info_linux.cc",
1085 "trace_event/malloc_dump_provider.cc",
1086 "trace_event/malloc_dump_provider.h",
1087 ] 1085 ]
1088 set_sources_assignment_filter(sources_assignment_filter) 1086 set_sources_assignment_filter(sources_assignment_filter)
1089 1087
1090 deps += [ 1088 deps += [
1091 ":base_jni_headers", 1089 ":base_jni_headers",
1092 "//third_party/android_tools:cpu_features", 1090 "//third_party/android_tools:cpu_features",
1093 "//third_party/ashmem", 1091 "//third_party/ashmem",
1094 ] 1092 ]
1095 1093
1096 # Needs to be a public config so that dependent targets link against it as 1094 # Needs to be a public config so that dependent targets link against it as
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
1291 "winmm.lib", 1289 "winmm.lib",
1292 ] 1290 ]
1293 all_dependent_configs = [ ":base_win_linker_flags" ] 1291 all_dependent_configs = [ ":base_win_linker_flags" ]
1294 } else if (!is_nacl || is_nacl_nonsfi) { 1292 } else if (!is_nacl || is_nacl_nonsfi) {
1295 # Non-Windows. 1293 # Non-Windows.
1296 deps += [ "//base/third_party/libevent" ] 1294 deps += [ "//base/third_party/libevent" ]
1297 } 1295 }
1298 1296
1299 # Desktop Mac. 1297 # Desktop Mac.
1300 if (is_mac) { 1298 if (is_mac) {
1301 sources += [
1302 "trace_event/malloc_dump_provider.cc",
1303 "trace_event/malloc_dump_provider.h",
1304 ]
1305 libs = [ 1299 libs = [
1306 "ApplicationServices.framework", 1300 "ApplicationServices.framework",
1307 "AppKit.framework", 1301 "AppKit.framework",
1308 "bsm", 1302 "bsm",
1309 "CoreFoundation.framework", 1303 "CoreFoundation.framework",
1310 "IOKit.framework", 1304 "IOKit.framework",
1311 "Security.framework", 1305 "Security.framework",
1312 ] 1306 ]
1313 } 1307 }
1314 1308
(...skipping 10 matching lines...) Expand all
1325 sources -= [ 1319 sources -= [
1326 "files/file_path_watcher_fsevents.cc", 1320 "files/file_path_watcher_fsevents.cc",
1327 "files/file_path_watcher_fsevents.h", 1321 "files/file_path_watcher_fsevents.h",
1328 "files/file_path_watcher_kqueue.cc", 1322 "files/file_path_watcher_kqueue.cc",
1329 "files/file_path_watcher_kqueue.h", 1323 "files/file_path_watcher_kqueue.h",
1330 ] 1324 ]
1331 } 1325 }
1332 1326
1333 # Linux. 1327 # Linux.
1334 if (is_linux) { 1328 if (is_linux) {
1335 sources += [
1336 "trace_event/malloc_dump_provider.cc",
1337 "trace_event/malloc_dump_provider.h",
1338 ]
1339
1340 if (is_asan || is_lsan || is_msan || is_tsan) { 1329 if (is_asan || is_lsan || is_msan || is_tsan) {
1341 # For llvm-sanitizer. 1330 # For llvm-sanitizer.
1342 data += [ "//third_party/llvm-build/Release+Asserts/lib/libstdc++.so.6" ] 1331 data += [ "//third_party/llvm-build/Release+Asserts/lib/libstdc++.so.6" ]
1343 } 1332 }
1344 1333
1345 # TODO(brettw) this will need to be parameterized at some point. 1334 # TODO(brettw) this will need to be parameterized at some point.
1346 linux_configs = [] 1335 linux_configs = []
1347 if (use_glib) { 1336 if (use_glib) {
1348 linux_configs += [ "//build/config/linux:glib" ] 1337 linux_configs += [ "//build/config/linux:glib" ]
1349 } 1338 }
(...skipping 625 matching lines...) Expand 10 before | Expand all | Expand 10 after
1975 "trace_event/heap_profiler_type_name_deduplicator_unittest.cc", 1964 "trace_event/heap_profiler_type_name_deduplicator_unittest.cc",
1976 "trace_event/java_heap_dump_provider_android_unittest.cc", 1965 "trace_event/java_heap_dump_provider_android_unittest.cc",
1977 "trace_event/memory_allocator_dump_unittest.cc", 1966 "trace_event/memory_allocator_dump_unittest.cc",
1978 "trace_event/memory_dump_manager_unittest.cc", 1967 "trace_event/memory_dump_manager_unittest.cc",
1979 "trace_event/process_memory_dump_unittest.cc", 1968 "trace_event/process_memory_dump_unittest.cc",
1980 "trace_event/trace_config_unittest.cc", 1969 "trace_event/trace_config_unittest.cc",
1981 "trace_event/trace_event_argument_unittest.cc", 1970 "trace_event/trace_event_argument_unittest.cc",
1982 "trace_event/trace_event_synthetic_delay_unittest.cc", 1971 "trace_event/trace_event_synthetic_delay_unittest.cc",
1983 "trace_event/trace_event_system_stats_monitor_unittest.cc", 1972 "trace_event/trace_event_system_stats_monitor_unittest.cc",
1984 "trace_event/trace_event_unittest.cc", 1973 "trace_event/trace_event_unittest.cc",
1985 "trace_event/winheap_dump_provider_win_unittest.cc",
1986 "tracked_objects_unittest.cc", 1974 "tracked_objects_unittest.cc",
1987 "tuple_unittest.cc", 1975 "tuple_unittest.cc",
1988 "values_unittest.cc", 1976 "values_unittest.cc",
1989 "version_unittest.cc", 1977 "version_unittest.cc",
1990 "vlog_unittest.cc", 1978 "vlog_unittest.cc",
1991 "win/dllmain.cc", 1979 "win/dllmain.cc",
1992 "win/enum_variant_unittest.cc", 1980 "win/enum_variant_unittest.cc",
1993 "win/event_trace_consumer_unittest.cc", 1981 "win/event_trace_consumer_unittest.cc",
1994 "win/event_trace_controller_unittest.cc", 1982 "win/event_trace_controller_unittest.cc",
1995 "win/event_trace_provider_unittest.cc", 1983 "win/event_trace_provider_unittest.cc",
(...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after
2445 android_library("base_java_unittest_support") { 2433 android_library("base_java_unittest_support") {
2446 deps = [ 2434 deps = [
2447 ":base_java", 2435 ":base_java",
2448 ] 2436 ]
2449 java_files = [ 2437 java_files = [
2450 "test/android/java/src/org/chromium/base/ContentUriTestUtils.java", 2438 "test/android/java/src/org/chromium/base/ContentUriTestUtils.java",
2451 "test/android/java/src/org/chromium/base/TestSystemMessageHandler.java", 2439 "test/android/java/src/org/chromium/base/TestSystemMessageHandler.java",
2452 ] 2440 ]
2453 } 2441 }
2454 } 2442 }
OLDNEW
« no previous file with comments | « no previous file | base/trace_event/malloc_dump_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698