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 import("//build/buildflag_header.gni") |
| 6 import("//components/metrics/leak_detector/leak_detector.gni") |
| 7 |
| 8 buildflag_header("metrics_flags") { |
| 9 header = "metrics_flags.h" |
| 10 |
| 11 flags = [ |
| 12 # Enable runtime leak detector. |
| 13 "ENABLE_LEAK_DETECTOR=$enable_leak_detector", |
| 14 ] |
| 15 } |
| 16 |
5 # GYP version: components/metrics.gypi:metrics | 17 # GYP version: components/metrics.gypi:metrics |
6 source_set("metrics") { | 18 source_set("metrics") { |
7 sources = [ | 19 sources = [ |
8 "call_stack_profile_metrics_provider.cc", | 20 "call_stack_profile_metrics_provider.cc", |
9 "call_stack_profile_metrics_provider.h", | 21 "call_stack_profile_metrics_provider.h", |
10 "clean_exit_beacon.cc", | 22 "clean_exit_beacon.cc", |
11 "clean_exit_beacon.h", | 23 "clean_exit_beacon.h", |
12 "client_info.cc", | 24 "client_info.cc", |
13 "client_info.h", | 25 "client_info.h", |
14 "cloned_install_detector.cc", | 26 "cloned_install_detector.cc", |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 "stability_metrics_helper.cc", | 66 "stability_metrics_helper.cc", |
55 "stability_metrics_helper.h", | 67 "stability_metrics_helper.h", |
56 "system_memory_stats_recorder.h", | 68 "system_memory_stats_recorder.h", |
57 "system_memory_stats_recorder_linux.cc", | 69 "system_memory_stats_recorder_linux.cc", |
58 "system_memory_stats_recorder_win.cc", | 70 "system_memory_stats_recorder_win.cc", |
59 "url_constants.cc", | 71 "url_constants.cc", |
60 "url_constants.h", | 72 "url_constants.h", |
61 ] | 73 ] |
62 | 74 |
63 public_deps = [ | 75 public_deps = [ |
| 76 ":metrics_flags", |
64 "//components/metrics/proto", | 77 "//components/metrics/proto", |
65 ] | 78 ] |
66 deps = [ | 79 deps = [ |
67 "//base", | 80 "//base", |
68 "//base:i18n", | 81 "//base:i18n", |
69 "//components/prefs", | 82 "//components/prefs", |
70 "//components/variations", | 83 "//components/variations", |
71 "//third_party/zlib:compression_utils", | 84 "//third_party/zlib:compression_utils", |
72 ] | 85 ] |
73 | 86 |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 source_set("leak_detector") { | 127 source_set("leak_detector") { |
115 sources = [ | 128 sources = [ |
116 "leak_detector/call_stack_manager.cc", | 129 "leak_detector/call_stack_manager.cc", |
117 "leak_detector/call_stack_manager.h", | 130 "leak_detector/call_stack_manager.h", |
118 "leak_detector/call_stack_table.cc", | 131 "leak_detector/call_stack_table.cc", |
119 "leak_detector/call_stack_table.h", | 132 "leak_detector/call_stack_table.h", |
120 "leak_detector/custom_allocator.cc", | 133 "leak_detector/custom_allocator.cc", |
121 "leak_detector/custom_allocator.h", | 134 "leak_detector/custom_allocator.h", |
122 "leak_detector/leak_analyzer.cc", | 135 "leak_detector/leak_analyzer.cc", |
123 "leak_detector/leak_analyzer.h", | 136 "leak_detector/leak_analyzer.h", |
| 137 "leak_detector/leak_detector.cc", |
| 138 "leak_detector/leak_detector.h", |
124 "leak_detector/leak_detector_impl.cc", | 139 "leak_detector/leak_detector_impl.cc", |
125 "leak_detector/leak_detector_impl.h", | 140 "leak_detector/leak_detector_impl.h", |
126 "leak_detector/leak_detector_value_type.cc", | 141 "leak_detector/leak_detector_value_type.cc", |
127 "leak_detector/leak_detector_value_type.h", | 142 "leak_detector/leak_detector_value_type.h", |
128 "leak_detector/ranked_list.cc", | 143 "leak_detector/ranked_list.cc", |
129 "leak_detector/ranked_list.h", | 144 "leak_detector/ranked_list.h", |
130 ] | 145 ] |
131 | 146 |
132 deps = [ | 147 deps = [ |
133 "//base", | 148 "//base", |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
276 } | 291 } |
277 | 292 |
278 if (is_chromeos) { | 293 if (is_chromeos) { |
279 source_set("leak_detector_unit_tests") { | 294 source_set("leak_detector_unit_tests") { |
280 testonly = true | 295 testonly = true |
281 sources = [ | 296 sources = [ |
282 "leak_detector/call_stack_manager_unittest.cc", | 297 "leak_detector/call_stack_manager_unittest.cc", |
283 "leak_detector/call_stack_table_unittest.cc", | 298 "leak_detector/call_stack_table_unittest.cc", |
284 "leak_detector/leak_analyzer_unittest.cc", | 299 "leak_detector/leak_analyzer_unittest.cc", |
285 "leak_detector/leak_detector_impl_unittest.cc", | 300 "leak_detector/leak_detector_impl_unittest.cc", |
| 301 "leak_detector/leak_detector_unittest.cc", |
286 "leak_detector/ranked_list_unittest.cc", | 302 "leak_detector/ranked_list_unittest.cc", |
287 ] | 303 ] |
288 | 304 |
289 deps = [ | 305 deps = [ |
290 ":leak_detector", | 306 ":leak_detector", |
291 "//base", | 307 "//base", |
292 "//testing/gtest", | 308 "//testing/gtest", |
293 ] | 309 ] |
294 } | 310 } |
295 } | 311 } |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
334 if (is_linux) { | 350 if (is_linux) { |
335 sources += [ "serialization/serialization_utils_unittest.cc" ] | 351 sources += [ "serialization/serialization_utils_unittest.cc" ] |
336 deps += [ ":serialization" ] | 352 deps += [ ":serialization" ] |
337 } | 353 } |
338 | 354 |
339 if (is_chromeos) { | 355 if (is_chromeos) { |
340 deps += [ ":leak_detector_unit_tests" ] | 356 deps += [ ":leak_detector_unit_tests" ] |
341 } | 357 } |
342 } | 358 } |
343 # TODO(GYP): metrics_chromeos | 359 # TODO(GYP): metrics_chromeos |
OLD | NEW |