Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(77)

Side by Side Diff: components/metrics/BUILD.gn

Issue 2254743003: Introduce mojo interface for collecting StackSamplingProfiler data (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkcr
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 import("//mojo/public/tools/bindings/mojom.gni")
6
5 declare_args() { 7 declare_args() {
6 # Overrides os name in uma metrics log to "Blimp". 8 # Overrides os name in uma metrics log to "Blimp".
7 metrics_use_blimp = false 9 metrics_use_blimp = false
8 } 10 }
9 11
10 # These are only used by the blimp team, which has entirely migrated to gn, 12 # These are only used by the blimp team, which has entirely migrated to gn,
11 # so this logic is not replicated in the gyp file. 13 # so this logic is not replicated in the gyp file.
12 if (metrics_use_blimp) { 14 if (metrics_use_blimp) {
13 defines = [ "OVERRIDE_OS_NAME_TO_BLIMP" ] 15 defines = [ "OVERRIDE_OS_NAME_TO_BLIMP" ]
14 } 16 }
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 "system_memory_stats_recorder_linux.cc", 78 "system_memory_stats_recorder_linux.cc",
77 "system_memory_stats_recorder_win.cc", 79 "system_memory_stats_recorder_win.cc",
78 "url_constants.cc", 80 "url_constants.cc",
79 "url_constants.h", 81 "url_constants.h",
80 ] 82 ]
81 83
82 public_deps = [ 84 public_deps = [
83 "//components/metrics/proto", 85 "//components/metrics/proto",
84 ] 86 ]
85 deps = [ 87 deps = [
88 ":mojo_bindings",
86 "//base", 89 "//base",
87 "//base:base_static", 90 "//base:base_static",
88 "//components/prefs", 91 "//components/prefs",
89 "//components/variations", 92 "//components/variations",
90 "//third_party/zlib:compression_utils", 93 "//third_party/zlib:compression_utils",
91 ] 94 ]
92 95
93 if (is_chromeos) { 96 if (is_chromeos) {
94 deps += [ ":serialization" ] 97 deps += [ ":serialization" ]
95 } 98 }
96 99
97 if (is_mac) { 100 if (is_mac) {
98 libs = [ 101 libs = [
99 # The below are all needed for drive_metrics_provider_mac.mm. 102 # The below are all needed for drive_metrics_provider_mac.mm.
100 "CoreFoundation.framework", 103 "CoreFoundation.framework",
101 "DiskArbitration.framework", 104 "DiskArbitration.framework",
102 "Foundation.framework", 105 "Foundation.framework",
103 "IOKit.framework", 106 "IOKit.framework",
104 ] 107 ]
105 } 108 }
106 109
107 if (is_win) { 110 if (is_win) {
108 sources -= [ "machine_id_provider_stub.cc" ] 111 sources -= [ "machine_id_provider_stub.cc" ]
109 } 112 }
110 } 113 }
111 114
115 mojom("mojo_bindings") {
116 sources = [
117 "call_stack_profile_collector.mojom",
118 ]
119
120 deps = [
121 "//mojo/common:common_custom_types",
122 ]
123
124 public_deps = [
125 "//skia/public/interfaces",
126 ]
127 }
128
112 if (!is_ios) { 129 if (!is_ios) {
113 # GYP version: components/metrics.gypi:metrics_gpu 130 # GYP version: components/metrics.gypi:metrics_gpu
114 static_library("gpu") { 131 static_library("gpu") {
115 sources = [ 132 sources = [
116 "gpu/gpu_metrics_provider.cc", 133 "gpu/gpu_metrics_provider.cc",
117 "gpu/gpu_metrics_provider.h", 134 "gpu/gpu_metrics_provider.h",
118 ] 135 ]
119 136
120 public_deps = [ 137 public_deps = [
121 ":metrics", 138 ":metrics",
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 "serialization/metric_sample.h", 285 "serialization/metric_sample.h",
269 "serialization/serialization_utils.cc", 286 "serialization/serialization_utils.cc",
270 "serialization/serialization_utils.h", 287 "serialization/serialization_utils.h",
271 ] 288 ]
272 deps = [ 289 deps = [
273 "//base", 290 "//base",
274 ] 291 ]
275 } 292 }
276 } 293 }
277 294
295 mojom("mojo_test_bindings") {
296 sources = [
297 "call_stack_profile_collector_test.mojom",
298 ]
299
300 deps = [
301 ":mojo_bindings",
302 "//mojo/common:common_custom_types",
303 ]
304 }
305
278 source_set("unit_tests") { 306 source_set("unit_tests") {
279 testonly = true 307 testonly = true
280 sources = [ 308 sources = [
309 "call_stack_profile_collector_test.mojom",
281 "call_stack_profile_metrics_provider_unittest.cc", 310 "call_stack_profile_metrics_provider_unittest.cc",
311 "call_stack_profile_struct_traits_unittest.cc",
282 "cloned_install_detector_unittest.cc", 312 "cloned_install_detector_unittest.cc",
283 "daily_event_unittest.cc", 313 "daily_event_unittest.cc",
284 "data_use_tracker_unittest.cc", 314 "data_use_tracker_unittest.cc",
285 "drive_metrics_provider_unittest.cc", 315 "drive_metrics_provider_unittest.cc",
286 "file_metrics_provider_unittest.cc", 316 "file_metrics_provider_unittest.cc",
287 "histogram_encoder_unittest.cc", 317 "histogram_encoder_unittest.cc",
288 "machine_id_provider_win_unittest.cc", 318 "machine_id_provider_win_unittest.cc",
289 "metrics_log_manager_unittest.cc", 319 "metrics_log_manager_unittest.cc",
290 "metrics_log_unittest.cc", 320 "metrics_log_unittest.cc",
291 "metrics_reporting_scheduler_unittest.cc", 321 "metrics_reporting_scheduler_unittest.cc",
292 "metrics_service_unittest.cc", 322 "metrics_service_unittest.cc",
293 "metrics_state_manager_unittest.cc", 323 "metrics_state_manager_unittest.cc",
294 "net/net_metrics_log_uploader_unittest.cc", 324 "net/net_metrics_log_uploader_unittest.cc",
295 "persisted_logs_unittest.cc", 325 "persisted_logs_unittest.cc",
296 "profiler/profiler_metrics_provider_unittest.cc", 326 "profiler/profiler_metrics_provider_unittest.cc",
297 "profiler/tracking_synchronizer_unittest.cc", 327 "profiler/tracking_synchronizer_unittest.cc",
298 "stability_metrics_helper_unittest.cc", 328 "stability_metrics_helper_unittest.cc",
299 "ui/screen_info_metrics_provider_unittest.cc", 329 "ui/screen_info_metrics_provider_unittest.cc",
300 ] 330 ]
301 331
302 deps = [ 332 deps = [
303 ":metrics", 333 ":metrics",
334 ":mojo_test_bindings",
304 ":net", 335 ":net",
305 ":profiler", 336 ":profiler",
306 ":test_support", 337 ":test_support",
307 ":ui", 338 ":ui",
308 "//base/test:test_support", 339 "//base/test:test_support",
309 "//components/prefs:test_support", 340 "//components/prefs:test_support",
310 "//components/variations", 341 "//components/variations",
311 "//net:test_support", 342 "//net:test_support",
312 "//testing/gtest", 343 "//testing/gtest",
313 "//third_party/zlib:compression_utils", 344 "//third_party/zlib:compression_utils",
314 "//ui/gfx/geometry", 345 "//ui/gfx/geometry",
315 ] 346 ]
316 347
317 if (is_linux) { 348 if (is_linux) {
318 sources += [ "serialization/serialization_utils_unittest.cc" ] 349 sources += [ "serialization/serialization_utils_unittest.cc" ]
319 deps += [ ":serialization" ] 350 deps += [ ":serialization" ]
320 } 351 }
321 352
322 if (is_chromeos) { 353 if (is_chromeos) {
323 deps += [ "leak_detector:unit_tests" ] 354 deps += [ "leak_detector:unit_tests" ]
324 } 355 }
325 } 356 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698