OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 # GYP version: components/metrics.gypi:metrics | 5 # GYP version: components/metrics.gypi:metrics |
6 source_set("metrics") { | 6 source_set("metrics") { |
7 sources = [ | 7 sources = [ |
8 "call_stack_profile_metrics_provider.cc", | 8 "call_stack_profile_metrics_provider.cc", |
9 "call_stack_profile_metrics_provider.h", | 9 "call_stack_profile_metrics_provider.h", |
10 "clean_exit_beacon.cc", | 10 "clean_exit_beacon.cc", |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 ":metrics", | 104 ":metrics", |
105 ] | 105 ] |
106 deps = [ | 106 deps = [ |
107 "//base", | 107 "//base", |
108 "//content/public/browser", | 108 "//content/public/browser", |
109 "//gpu/config", | 109 "//gpu/config", |
110 ] | 110 ] |
111 } | 111 } |
112 } | 112 } |
113 | 113 |
114 # GYP version: components/metrics.gypi:metrics_leak_detector | 114 if (is_chromeos) { |
115 static_library("leak_detector") { | 115 # GYP version: components/metrics.gypi:metrics_leak_detector |
116 sources = [ | 116 source_set("leak_detector") { |
117 "leak_detector/call_stack_manager.cc", | 117 sources = [ |
118 "leak_detector/call_stack_manager.h", | 118 "leak_detector/call_stack_manager.cc", |
119 "leak_detector/call_stack_table.cc", | 119 "leak_detector/call_stack_manager.h", |
120 "leak_detector/call_stack_table.h", | 120 "leak_detector/call_stack_table.cc", |
121 "leak_detector/custom_allocator.cc", | 121 "leak_detector/call_stack_table.h", |
122 "leak_detector/custom_allocator.h", | 122 "leak_detector/custom_allocator.cc", |
123 "leak_detector/leak_analyzer.cc", | 123 "leak_detector/custom_allocator.h", |
124 "leak_detector/leak_analyzer.h", | 124 "leak_detector/leak_analyzer.cc", |
125 "leak_detector/leak_detector_impl.cc", | 125 "leak_detector/leak_analyzer.h", |
126 "leak_detector/leak_detector_impl.h", | 126 "leak_detector/leak_detector_impl.cc", |
127 "leak_detector/leak_detector_value_type.cc", | 127 "leak_detector/leak_detector_impl.h", |
128 "leak_detector/leak_detector_value_type.h", | 128 "leak_detector/leak_detector_value_type.cc", |
129 "leak_detector/ranked_list.cc", | 129 "leak_detector/leak_detector_value_type.h", |
130 "leak_detector/ranked_list.h", | 130 "leak_detector/ranked_list.cc", |
131 ] | 131 "leak_detector/ranked_list.h", |
| 132 ] |
132 | 133 |
133 deps = [ | 134 deps = [ |
134 "//base", | 135 "//base", |
135 ] | 136 ] |
| 137 } |
136 } | 138 } |
137 | 139 |
138 # GYP version: components/metrics.gypi:metrics_net | 140 # GYP version: components/metrics.gypi:metrics_net |
139 static_library("net") { | 141 static_library("net") { |
140 sources = [ | 142 sources = [ |
141 "net/net_metrics_log_uploader.cc", | 143 "net/net_metrics_log_uploader.cc", |
142 "net/net_metrics_log_uploader.h", | 144 "net/net_metrics_log_uploader.h", |
143 "net/network_metrics_provider.cc", | 145 "net/network_metrics_provider.cc", |
144 "net/network_metrics_provider.h", | 146 "net/network_metrics_provider.h", |
145 "net/version_utils.cc", | 147 "net/version_utils.cc", |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
258 "serialization/metric_sample.h", | 260 "serialization/metric_sample.h", |
259 "serialization/serialization_utils.cc", | 261 "serialization/serialization_utils.cc", |
260 "serialization/serialization_utils.h", | 262 "serialization/serialization_utils.h", |
261 ] | 263 ] |
262 deps = [ | 264 deps = [ |
263 "//base", | 265 "//base", |
264 ] | 266 ] |
265 } | 267 } |
266 } | 268 } |
267 | 269 |
268 source_set("leak_detector_unit_tests") { | 270 if (is_chromeos) { |
269 testonly = true | 271 source_set("leak_detector_unit_tests") { |
270 sources = [ | 272 testonly = true |
271 "leak_detector/call_stack_manager_unittest.cc", | 273 sources = [ |
272 "leak_detector/call_stack_table_unittest.cc", | 274 "leak_detector/call_stack_manager_unittest.cc", |
273 "leak_detector/leak_analyzer_unittest.cc", | 275 "leak_detector/call_stack_table_unittest.cc", |
274 "leak_detector/leak_detector_impl_unittest.cc", | 276 "leak_detector/leak_analyzer_unittest.cc", |
275 "leak_detector/ranked_list_unittest.cc", | 277 "leak_detector/leak_detector_impl_unittest.cc", |
276 ] | 278 "leak_detector/ranked_list_unittest.cc", |
| 279 ] |
277 | 280 |
278 deps = [ | 281 deps = [ |
279 ":leak_detector", | 282 ":leak_detector", |
280 "//testing/gtest", | 283 "//testing/gtest", |
281 ] | 284 ] |
| 285 } |
282 } | 286 } |
283 | 287 |
284 source_set("unit_tests") { | 288 source_set("unit_tests") { |
285 testonly = true | 289 testonly = true |
286 sources = [ | 290 sources = [ |
287 "call_stack_profile_metrics_provider_unittest.cc", | 291 "call_stack_profile_metrics_provider_unittest.cc", |
288 "cloned_install_detector_unittest.cc", | 292 "cloned_install_detector_unittest.cc", |
289 "daily_event_unittest.cc", | 293 "daily_event_unittest.cc", |
290 "drive_metrics_provider_unittest.cc", | 294 "drive_metrics_provider_unittest.cc", |
291 "histogram_encoder_unittest.cc", | 295 "histogram_encoder_unittest.cc", |
(...skipping 27 matching lines...) Expand all Loading... |
319 if (is_linux) { | 323 if (is_linux) { |
320 sources += [ "serialization/serialization_utils_unittest.cc" ] | 324 sources += [ "serialization/serialization_utils_unittest.cc" ] |
321 deps += [ ":serialization" ] | 325 deps += [ ":serialization" ] |
322 } | 326 } |
323 | 327 |
324 if (is_chromeos) { | 328 if (is_chromeos) { |
325 deps += [ ":leak_detector_unit_tests" ] | 329 deps += [ ":leak_detector_unit_tests" ] |
326 } | 330 } |
327 } | 331 } |
328 # TODO(GYP): metrics_chromeos | 332 # TODO(GYP): metrics_chromeos |
OLD | NEW |