Revert "Fix broken channel icon in chrome://help on CrOS" and try again
[chromium-blink-merge.git] / base / trace_event / BUILD.gn
blob3e102f1ff1851f98a8a16458ae8ccf3a820f72b2
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.
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_buffer.cc",
31     "trace_buffer.h",
32     "trace_config.cc",
33     "trace_config.h",
34     "trace_event.h",
35     "trace_event_android.cc",
36     "trace_event_argument.cc",
37     "trace_event_argument.h",
38     "trace_event_common.h",
39     "trace_event_etw_export_win.cc",
40     "trace_event_etw_export_win.h",
41     "trace_event_impl.cc",
42     "trace_event_impl.h",
43     "trace_event_memory.cc",
44     "trace_event_memory.h",
45     "trace_event_memory_overhead.cc",
46     "trace_event_memory_overhead.h",
47     "trace_event_synthetic_delay.cc",
48     "trace_event_synthetic_delay.h",
49     "trace_event_system_stats_monitor.cc",
50     "trace_event_system_stats_monitor.h",
51     "trace_event_win.cc",
52     "trace_event_win.h",
53     "trace_log.cc",
54     "trace_log.h",
55     "trace_log_constants.cc",
56     "trace_sampling_thread.cc",
57     "trace_sampling_thread.h",
58     "winheap_dump_provider_win.cc",
59     "winheap_dump_provider_win.h",
60   ]
62   if (is_nacl) {
63     sources -= [
64       "process_memory_totals_dump_provider.cc",
65       "trace_event_system_stats_monitor.cc",
66     ]
67   }
69   if (is_linux || is_android) {
70     sources += [
71       "malloc_dump_provider.cc",
72       "malloc_dump_provider.h",
73     ]
74   }
76   configs += [ "//base:base_implementation" ]
78   deps = [
79     "//base/debug",
80     "//base/json",
81     "//base/memory",
82     "//base/process",
83     "//base/third_party/dynamic_annotations",
84   ]
86   if (is_win) {
87     deps += [ "//base/trace_event/etw_manifest:chrome_events_win" ]
88   }
90   allow_circular_includes_from = [
91     "//base/debug",
92     "//base/memory",
93     "//base/process",
94   ]
96   visibility = [ "//base/*" ]
99 source_set("trace_event_unittests") {
100   testonly = true
101   sources = [
102     "java_heap_dump_provider_android_unittest.cc",
103     "memory_allocator_dump_unittest.cc",
104     "memory_dump_manager_unittest.cc",
105     "process_memory_dump_unittest.cc",
106     "process_memory_maps_dump_provider_unittest.cc",
107     "process_memory_totals_dump_provider_unittest.cc",
108     "trace_config_unittest.cc",
109     "trace_event_argument_unittest.cc",
110     "trace_event_memory_unittest.cc",
111     "trace_event_synthetic_delay_unittest.cc",
112     "trace_event_system_stats_monitor_unittest.cc",
113     "trace_event_unittest.cc",
114     "trace_event_win_unittest.cc",
115     "winheap_dump_provider_win_unittest.cc",
116   ]
118   deps = [
119     "//base/test:test_support",
120     "//testing/gmock",
121     "//testing/gtest",
122   ]