| OLD | NEW |
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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 source_set("trace_event") { | 5 source_set("trace_event") { |
| 6 sources = [ | 6 sources = [ |
| 7 "memory_allocator_attributes.h", | 7 "java_heap_dump_provider_android.cc", |
| 8 "java_heap_dump_provider_android.h", |
| 9 "memory_allocator_attributes_type_info.cc", |
| 10 "memory_allocator_attributes_type_info.h", |
| 8 "memory_allocator_dump.cc", | 11 "memory_allocator_dump.cc", |
| 9 "memory_allocator_dump.h", | 12 "memory_allocator_dump.h", |
| 10 "memory_dump_manager.cc", | 13 "memory_dump_manager.cc", |
| 11 "memory_dump_manager.h", | 14 "memory_dump_manager.h", |
| 12 "memory_dump_provider.cc", | 15 "memory_dump_provider.cc", |
| 13 "memory_dump_provider.h", | 16 "memory_dump_provider.h", |
| 17 "memory_dump_request_args.h", |
| 18 "memory_dump_session_state.cc", |
| 19 "memory_dump_session_state.h", |
| 14 "process_memory_dump.cc", | 20 "process_memory_dump.cc", |
| 15 "process_memory_dump.h", | 21 "process_memory_dump.h", |
| 16 "process_memory_maps.cc", | 22 "process_memory_maps.cc", |
| 17 "process_memory_maps.h", | 23 "process_memory_maps.h", |
| 18 "process_memory_maps_dump_provider.cc", | 24 "process_memory_maps_dump_provider.cc", |
| 19 "process_memory_maps_dump_provider.h", | 25 "process_memory_maps_dump_provider.h", |
| 20 "process_memory_totals.cc", | 26 "process_memory_totals.cc", |
| 21 "process_memory_totals.h", | 27 "process_memory_totals.h", |
| 22 "process_memory_totals_dump_provider.cc", | 28 "process_memory_totals_dump_provider.cc", |
| 23 "process_memory_totals_dump_provider.h", | 29 "process_memory_totals_dump_provider.h", |
| 24 "trace_event.h", | 30 "trace_event.h", |
| 25 "trace_event_android.cc", | 31 "trace_event_android.cc", |
| 26 "trace_event_argument.cc", | 32 "trace_event_argument.cc", |
| 27 "trace_event_argument.h", | 33 "trace_event_argument.h", |
| 34 "trace_event_etw_export_win.cc", |
| 35 "trace_event_etw_export_win.h", |
| 28 "trace_event_impl.cc", | 36 "trace_event_impl.cc", |
| 29 "trace_event_impl.h", | 37 "trace_event_impl.h", |
| 30 "trace_event_impl_constants.cc", | 38 "trace_event_impl_constants.cc", |
| 31 "trace_event_memory.cc", | 39 "trace_event_memory.cc", |
| 32 "trace_event_memory.h", | 40 "trace_event_memory.h", |
| 33 "trace_event_synthetic_delay.cc", | 41 "trace_event_synthetic_delay.cc", |
| 34 "trace_event_synthetic_delay.h", | 42 "trace_event_synthetic_delay.h", |
| 35 "trace_event_system_stats_monitor.cc", | 43 "trace_event_system_stats_monitor.cc", |
| 36 "trace_event_system_stats_monitor.h", | 44 "trace_event_system_stats_monitor.h", |
| 37 "trace_event_win.cc", | 45 "trace_event_win.cc", |
| 38 "trace_event_win.h", | 46 "trace_event_win.h", |
| 47 "winheap_dump_provider_win.cc", |
| 48 "winheap_dump_provider_win.h", |
| 39 ] | 49 ] |
| 40 | 50 |
| 41 if (is_nacl) { | 51 if (is_nacl) { |
| 42 sources -= [ | 52 sources -= [ |
| 43 "process_memory_totals_dump_provider.cc", | 53 "process_memory_totals_dump_provider.cc", |
| 44 "trace_event_system_stats_monitor.cc", | 54 "trace_event_system_stats_monitor.cc", |
| 45 ] | 55 ] |
| 46 } | 56 } |
| 47 | 57 |
| 58 if (is_linux || is_android) { |
| 59 sources += [ |
| 60 "malloc_dump_provider.cc", |
| 61 "malloc_dump_provider.h", |
| 62 ] |
| 63 } |
| 64 |
| 48 configs += [ "//base:base_implementation" ] | 65 configs += [ "//base:base_implementation" ] |
| 49 | 66 |
| 50 deps = [ | 67 deps = [ |
| 51 "//base/debug", | 68 "//base/debug", |
| 52 "//base/json", | 69 "//base/json", |
| 53 "//base/memory", | 70 "//base/memory", |
| 54 "//base/process", | 71 "//base/process", |
| 55 "//base/third_party/dynamic_annotations", | 72 "//base/third_party/dynamic_annotations", |
| 56 ] | 73 ] |
| 57 | 74 |
| 75 if (is_win) { |
| 76 deps += [ "//base/trace_event/etw_manifest:chrome_events_win" ] |
| 77 } |
| 78 |
| 58 allow_circular_includes_from = [ | 79 allow_circular_includes_from = [ |
| 59 "//base/debug", | 80 "//base/debug", |
| 60 "//base/memory", | 81 "//base/memory", |
| 61 "//base/process", | 82 "//base/process", |
| 62 ] | 83 ] |
| 63 | 84 |
| 64 visibility = [ "//base/*" ] | 85 visibility = [ "//base/*" ] |
| 65 } | 86 } |
| 66 | 87 |
| 67 source_set("trace_event_unittests") { | 88 source_set("trace_event_unittests") { |
| 68 testonly = true | 89 testonly = true |
| 69 sources = [ | 90 sources = [ |
| 91 "memory_allocator_attributes_type_info_unittest.cc", |
| 70 "memory_allocator_dump_unittest.cc", | 92 "memory_allocator_dump_unittest.cc", |
| 71 "memory_dump_manager_unittest.cc", | 93 "memory_dump_manager_unittest.cc", |
| 72 "process_memory_maps_dump_provider_unittest.cc", | 94 "process_memory_maps_dump_provider_unittest.cc", |
| 73 "process_memory_totals_dump_provider_unittest.cc", | 95 "process_memory_totals_dump_provider_unittest.cc", |
| 74 "trace_event_argument_unittest.cc", | 96 "trace_event_argument_unittest.cc", |
| 75 "trace_event_memory_unittest.cc", | 97 "trace_event_memory_unittest.cc", |
| 76 "trace_event_synthetic_delay_unittest.cc", | 98 "trace_event_synthetic_delay_unittest.cc", |
| 77 "trace_event_system_stats_monitor_unittest.cc", | 99 "trace_event_system_stats_monitor_unittest.cc", |
| 78 "trace_event_unittest.cc", | 100 "trace_event_unittest.cc", |
| 79 "trace_event_win_unittest.cc", | 101 "trace_event_win_unittest.cc", |
| 102 "winheap_dump_provider_win_unittest.cc", |
| 80 ] | 103 ] |
| 81 | 104 |
| 82 deps = [ | 105 deps = [ |
| 83 "//base/test:test_support", | 106 "//base/test:test_support", |
| 84 "//testing/gmock", | 107 "//testing/gmock", |
| 85 "//testing/gtest", | 108 "//testing/gtest", |
| 86 ] | 109 ] |
| 87 } | 110 } |
| OLD | NEW |