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

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

Issue 1472763003: Reland of: components/metrics: Add runtime memory leak detector (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 5 years 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
« no previous file with comments | « components/metrics.gypi ('k') | components/metrics/leak_detector/OWNERS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 # 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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 ":metrics", 102 ":metrics",
103 ] 103 ]
104 deps = [ 104 deps = [
105 "//base", 105 "//base",
106 "//content/public/browser", 106 "//content/public/browser",
107 "//gpu/config", 107 "//gpu/config",
108 ] 108 ]
109 } 109 }
110 } 110 }
111 111
112 if (is_chromeos) {
113 # GYP version: components/metrics.gypi:metrics_leak_detector
114 source_set("leak_detector") {
115 sources = [
116 "leak_detector/call_stack_manager.cc",
117 "leak_detector/call_stack_manager.h",
118 "leak_detector/call_stack_table.cc",
119 "leak_detector/call_stack_table.h",
120 "leak_detector/custom_allocator.cc",
121 "leak_detector/custom_allocator.h",
122 "leak_detector/leak_analyzer.cc",
123 "leak_detector/leak_analyzer.h",
124 "leak_detector/leak_detector_impl.cc",
125 "leak_detector/leak_detector_impl.h",
126 "leak_detector/leak_detector_value_type.cc",
127 "leak_detector/leak_detector_value_type.h",
128 "leak_detector/ranked_list.cc",
129 "leak_detector/ranked_list.h",
130 ]
131
132 deps = [
133 "//base",
134 ]
135 }
136 }
137
112 # GYP version: components/metrics.gypi:metrics_net 138 # GYP version: components/metrics.gypi:metrics_net
113 static_library("net") { 139 static_library("net") {
114 sources = [ 140 sources = [
115 "net/net_metrics_log_uploader.cc", 141 "net/net_metrics_log_uploader.cc",
116 "net/net_metrics_log_uploader.h", 142 "net/net_metrics_log_uploader.h",
117 "net/network_metrics_provider.cc", 143 "net/network_metrics_provider.cc",
118 "net/network_metrics_provider.h", 144 "net/network_metrics_provider.h",
119 "net/version_utils.cc", 145 "net/version_utils.cc",
120 "net/version_utils.h", 146 "net/version_utils.h",
121 "net/wifi_access_point_info_provider.cc", 147 "net/wifi_access_point_info_provider.cc",
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 "serialization/metric_sample.h", 268 "serialization/metric_sample.h",
243 "serialization/serialization_utils.cc", 269 "serialization/serialization_utils.cc",
244 "serialization/serialization_utils.h", 270 "serialization/serialization_utils.h",
245 ] 271 ]
246 deps = [ 272 deps = [
247 "//base", 273 "//base",
248 ] 274 ]
249 } 275 }
250 } 276 }
251 277
278 if (is_chromeos) {
279 source_set("leak_detector_unit_tests") {
280 testonly = true
281 sources = [
282 "leak_detector/call_stack_manager_unittest.cc",
283 "leak_detector/call_stack_table_unittest.cc",
284 "leak_detector/leak_analyzer_unittest.cc",
285 "leak_detector/leak_detector_impl_unittest.cc",
286 "leak_detector/ranked_list_unittest.cc",
287 ]
288
289 deps = [
290 ":leak_detector",
291 "//base",
292 "//testing/gtest",
293 ]
294 }
295 }
296
252 source_set("unit_tests") { 297 source_set("unit_tests") {
253 testonly = true 298 testonly = true
254 sources = [ 299 sources = [
255 "call_stack_profile_metrics_provider_unittest.cc", 300 "call_stack_profile_metrics_provider_unittest.cc",
256 "cloned_install_detector_unittest.cc", 301 "cloned_install_detector_unittest.cc",
257 "daily_event_unittest.cc", 302 "daily_event_unittest.cc",
258 "drive_metrics_provider_unittest.cc", 303 "drive_metrics_provider_unittest.cc",
259 "histogram_encoder_unittest.cc", 304 "histogram_encoder_unittest.cc",
260 "machine_id_provider_win_unittest.cc", 305 "machine_id_provider_win_unittest.cc",
261 "metrics_log_manager_unittest.cc", 306 "metrics_log_manager_unittest.cc",
(...skipping 21 matching lines...) Expand all
283 "//components/variations", 328 "//components/variations",
284 "//net:test_support", 329 "//net:test_support",
285 "//testing/gtest", 330 "//testing/gtest",
286 "//ui/gfx/geometry", 331 "//ui/gfx/geometry",
287 ] 332 ]
288 333
289 if (is_linux) { 334 if (is_linux) {
290 sources += [ "serialization/serialization_utils_unittest.cc" ] 335 sources += [ "serialization/serialization_utils_unittest.cc" ]
291 deps += [ ":serialization" ] 336 deps += [ ":serialization" ]
292 } 337 }
338
339 if (is_chromeos) {
340 deps += [ ":leak_detector_unit_tests" ]
341 }
293 } 342 }
294 # TODO(GYP): metrics_chromeos 343 # TODO(GYP): metrics_chromeos
OLDNEW
« no previous file with comments | « components/metrics.gypi ('k') | components/metrics/leak_detector/OWNERS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698