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