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 declare_args() { | 5 declare_args() { |
6 # Overrides os name in uma metrics log to "Blimp". | 6 # Overrides os name in uma metrics log to "Blimp". |
7 metrics_use_blimp = false | 7 metrics_use_blimp = false |
8 } | 8 } |
9 | 9 |
10 # These are only used by the blimp team, which has entirely migrated to gn, | 10 # These are only used by the blimp team, which has entirely migrated to gn, |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 ":metrics", | 121 ":metrics", |
122 ] | 122 ] |
123 deps = [ | 123 deps = [ |
124 "//base", | 124 "//base", |
125 "//content/public/browser", | 125 "//content/public/browser", |
126 "//gpu/config", | 126 "//gpu/config", |
127 ] | 127 ] |
128 } | 128 } |
129 } | 129 } |
130 | 130 |
| 131 if (is_chromeos) { |
| 132 # GYP version: components/metrics.gypi:metrics_leak_detector |
| 133 static_library("leak_detector") { |
| 134 sources = [ |
| 135 "leak_detector/call_stack_manager.cc", |
| 136 "leak_detector/call_stack_manager.h", |
| 137 "leak_detector/call_stack_table.cc", |
| 138 "leak_detector/call_stack_table.h", |
| 139 "leak_detector/custom_allocator.cc", |
| 140 "leak_detector/custom_allocator.h", |
| 141 "leak_detector/leak_analyzer.cc", |
| 142 "leak_detector/leak_analyzer.h", |
| 143 "leak_detector/leak_detector.cc", |
| 144 "leak_detector/leak_detector.h", |
| 145 "leak_detector/leak_detector_impl.cc", |
| 146 "leak_detector/leak_detector_impl.h", |
| 147 "leak_detector/leak_detector_value_type.cc", |
| 148 "leak_detector/leak_detector_value_type.h", |
| 149 "leak_detector/ranked_set.cc", |
| 150 "leak_detector/ranked_set.h", |
| 151 ] |
| 152 |
| 153 deps = [ |
| 154 "//base", |
| 155 "//components/metrics/proto:proto", |
| 156 ] |
| 157 } |
| 158 } |
| 159 |
131 # GYP version: components/metrics.gypi:metrics_net | 160 # GYP version: components/metrics.gypi:metrics_net |
132 static_library("net") { | 161 static_library("net") { |
133 sources = [ | 162 sources = [ |
134 "net/cellular_logic_helper.cc", | 163 "net/cellular_logic_helper.cc", |
135 "net/cellular_logic_helper.h", | 164 "net/cellular_logic_helper.h", |
136 "net/net_metrics_log_uploader.cc", | 165 "net/net_metrics_log_uploader.cc", |
137 "net/net_metrics_log_uploader.h", | 166 "net/net_metrics_log_uploader.h", |
138 "net/network_metrics_provider.cc", | 167 "net/network_metrics_provider.cc", |
139 "net/network_metrics_provider.h", | 168 "net/network_metrics_provider.h", |
140 "net/version_utils.cc", | 169 "net/version_utils.cc", |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
267 "serialization/metric_sample.cc", | 296 "serialization/metric_sample.cc", |
268 "serialization/metric_sample.h", | 297 "serialization/metric_sample.h", |
269 "serialization/serialization_utils.cc", | 298 "serialization/serialization_utils.cc", |
270 "serialization/serialization_utils.h", | 299 "serialization/serialization_utils.h", |
271 ] | 300 ] |
272 deps = [ | 301 deps = [ |
273 "//base", | 302 "//base", |
274 ] | 303 ] |
275 } | 304 } |
276 } | 305 } |
| 306 |
| 307 if (is_chromeos) { |
| 308 source_set("leak_detector_unit_tests") { |
| 309 testonly = true |
| 310 sources = [ |
| 311 "leak_detector/call_stack_manager_unittest.cc", |
| 312 "leak_detector/call_stack_table_unittest.cc", |
| 313 "leak_detector/leak_analyzer_unittest.cc", |
| 314 "leak_detector/leak_detector_impl_unittest.cc", |
| 315 "leak_detector/leak_detector_unittest.cc", |
| 316 "leak_detector/ranked_set_unittest.cc", |
| 317 ] |
| 318 |
| 319 deps = [ |
| 320 ":leak_detector", |
| 321 "//base", |
| 322 "//components/metrics/proto:proto", |
| 323 "//content/test:test_support", |
| 324 "//testing/gtest", |
| 325 ] |
| 326 } |
| 327 } |
277 | 328 |
278 source_set("unit_tests") { | 329 source_set("unit_tests") { |
279 testonly = true | 330 testonly = true |
280 sources = [ | 331 sources = [ |
281 "call_stack_profile_metrics_provider_unittest.cc", | 332 "call_stack_profile_metrics_provider_unittest.cc", |
282 "cloned_install_detector_unittest.cc", | 333 "cloned_install_detector_unittest.cc", |
283 "daily_event_unittest.cc", | 334 "daily_event_unittest.cc", |
284 "data_use_tracker_unittest.cc", | 335 "data_use_tracker_unittest.cc", |
285 "drive_metrics_provider_unittest.cc", | 336 "drive_metrics_provider_unittest.cc", |
286 "file_metrics_provider_unittest.cc", | 337 "file_metrics_provider_unittest.cc", |
(...skipping 26 matching lines...) Expand all Loading... |
313 "//third_party/zlib:compression_utils", | 364 "//third_party/zlib:compression_utils", |
314 "//ui/gfx/geometry", | 365 "//ui/gfx/geometry", |
315 ] | 366 ] |
316 | 367 |
317 if (is_linux) { | 368 if (is_linux) { |
318 sources += [ "serialization/serialization_utils_unittest.cc" ] | 369 sources += [ "serialization/serialization_utils_unittest.cc" ] |
319 deps += [ ":serialization" ] | 370 deps += [ ":serialization" ] |
320 } | 371 } |
321 | 372 |
322 if (is_chromeos) { | 373 if (is_chromeos) { |
323 deps += [ "leak_detector:unit_tests" ] | 374 deps += [ ":leak_detector_unit_tests" ] |
324 } | 375 } |
325 } | 376 } |
OLD | NEW |