Check for *.googlezip.net proxies when migrating proxy pref for DRP.
[chromium-blink-merge.git] / base / trace_event / BUILD.gn
blob548552a78408db7dafb551cf80fe6280312c68e6
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_dump_manager.cc",
12     "memory_dump_manager.h",
13     "memory_dump_provider.h",
14     "memory_dump_request_args.h",
15     "memory_dump_session_state.cc",
16     "memory_dump_session_state.h",
17     "process_memory_dump.cc",
18     "process_memory_dump.h",
19     "process_memory_maps.cc",
20     "process_memory_maps.h",
21     "process_memory_maps_dump_provider.cc",
22     "process_memory_maps_dump_provider.h",
23     "process_memory_totals.cc",
24     "process_memory_totals.h",
25     "process_memory_totals_dump_provider.cc",
26     "process_memory_totals_dump_provider.h",
27     "trace_event.h",
28     "trace_event_android.cc",
29     "trace_event_argument.cc",
30     "trace_event_argument.h",
31     "trace_event_etw_export_win.cc",
32     "trace_event_etw_export_win.h",
33     "trace_event_impl.cc",
34     "trace_event_impl.h",
35     "trace_event_impl_constants.cc",
36     "trace_event_memory.cc",
37     "trace_event_memory.h",
38     "trace_event_synthetic_delay.cc",
39     "trace_event_synthetic_delay.h",
40     "trace_event_system_stats_monitor.cc",
41     "trace_event_system_stats_monitor.h",
42     "trace_event_win.cc",
43     "trace_event_win.h",
44     "winheap_dump_provider_win.cc",
45     "winheap_dump_provider_win.h",
46   ]
48   if (is_nacl) {
49     sources -= [
50       "process_memory_totals_dump_provider.cc",
51       "trace_event_system_stats_monitor.cc",
52     ]
53   }
55   if (is_linux || is_android) {
56     sources += [
57       "malloc_dump_provider.cc",
58       "malloc_dump_provider.h",
59     ]
60   }
62   configs += [ "//base:base_implementation" ]
64   deps = [
65     "//base/debug",
66     "//base/json",
67     "//base/memory",
68     "//base/process",
69     "//base/third_party/dynamic_annotations",
70   ]
72   if (is_win) {
73     deps += [ "//base/trace_event/etw_manifest:chrome_events_win" ]
74   }
76   allow_circular_includes_from = [
77     "//base/debug",
78     "//base/memory",
79     "//base/process",
80   ]
82   visibility = [ "//base/*" ]
85 source_set("trace_event_unittests") {
86   testonly = true
87   sources = [
88     "memory_allocator_dump_unittest.cc",
89     "memory_dump_manager_unittest.cc",
90     "process_memory_maps_dump_provider_unittest.cc",
91     "process_memory_totals_dump_provider_unittest.cc",
92     "trace_event_argument_unittest.cc",
93     "trace_event_memory_unittest.cc",
94     "trace_event_synthetic_delay_unittest.cc",
95     "trace_event_system_stats_monitor_unittest.cc",
96     "trace_event_unittest.cc",
97     "trace_event_win_unittest.cc",
98     "winheap_dump_provider_win_unittest.cc",
99   ]
101   deps = [
102     "//base/test:test_support",
103     "//testing/gmock",
104     "//testing/gtest",
105   ]