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

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

Issue 986503002: components/metrics: Add runtime memory leak detector (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Mac build fixes: const arg in comparator, rm const in func return type Created 5 years, 1 month 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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
115 static_library("leak_detector") {
116 sources = [
117 "leak_detector/call_stack_manager.cc",
118 "leak_detector/call_stack_manager.h",
119 "leak_detector/call_stack_table.cc",
120 "leak_detector/call_stack_table.h",
121 "leak_detector/custom_allocator.cc",
122 "leak_detector/custom_allocator.h",
123 "leak_detector/leak_analyzer.cc",
124 "leak_detector/leak_analyzer.h",
125 "leak_detector/leak_detector_impl.cc",
126 "leak_detector/leak_detector_impl.h",
127 "leak_detector/leak_detector_value_type.cc",
128 "leak_detector/leak_detector_value_type.h",
129 "leak_detector/ranked_list.cc",
130 "leak_detector/ranked_list.h",
131 ]
132
133 deps = [
134 "//base",
135 ]
136 }
137
114 # GYP version: components/metrics.gypi:metrics_net 138 # GYP version: components/metrics.gypi:metrics_net
115 static_library("net") { 139 static_library("net") {
116 sources = [ 140 sources = [
117 "net/net_metrics_log_uploader.cc", 141 "net/net_metrics_log_uploader.cc",
118 "net/net_metrics_log_uploader.h", 142 "net/net_metrics_log_uploader.h",
119 "net/network_metrics_provider.cc", 143 "net/network_metrics_provider.cc",
120 "net/network_metrics_provider.h", 144 "net/network_metrics_provider.h",
121 "net/version_utils.cc", 145 "net/version_utils.cc",
122 "net/version_utils.h", 146 "net/version_utils.h",
123 "net/wifi_access_point_info_provider.cc", 147 "net/wifi_access_point_info_provider.cc",
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 "serialization/metric_sample.h", 258 "serialization/metric_sample.h",
235 "serialization/serialization_utils.cc", 259 "serialization/serialization_utils.cc",
236 "serialization/serialization_utils.h", 260 "serialization/serialization_utils.h",
237 ] 261 ]
238 deps = [ 262 deps = [
239 "//base", 263 "//base",
240 ] 264 ]
241 } 265 }
242 } 266 }
243 267
268 source_set("leak_detector_unit_tests") {
269 testonly = true
270 sources = [
271 "leak_detector/call_stack_manager_unittest.cc",
272 "leak_detector/call_stack_table_unittest.cc",
273 "leak_detector/leak_analyzer_unittest.cc",
274 "leak_detector/leak_detector_impl_unittest.cc",
275 "leak_detector/ranked_list_unittest.cc",
276 ]
277
278 deps = [
279 ":leak_detector",
280 "//testing/gtest",
281 ]
282 }
283
244 source_set("unit_tests") { 284 source_set("unit_tests") {
245 testonly = true 285 testonly = true
246 sources = [ 286 sources = [
247 "call_stack_profile_metrics_provider_unittest.cc", 287 "call_stack_profile_metrics_provider_unittest.cc",
248 "cloned_install_detector_unittest.cc", 288 "cloned_install_detector_unittest.cc",
249 "daily_event_unittest.cc", 289 "daily_event_unittest.cc",
250 "drive_metrics_provider_unittest.cc", 290 "drive_metrics_provider_unittest.cc",
251 "histogram_encoder_unittest.cc", 291 "histogram_encoder_unittest.cc",
252 "machine_id_provider_win_unittest.cc", 292 "machine_id_provider_win_unittest.cc",
253 "metrics_hashes_unittest.cc", 293 "metrics_hashes_unittest.cc",
(...skipping 19 matching lines...) Expand all
273 "//base:prefs_test_support", 313 "//base:prefs_test_support",
274 "//base/test:test_support", 314 "//base/test:test_support",
275 "//components/variations", 315 "//components/variations",
276 "//testing/gtest", 316 "//testing/gtest",
277 ] 317 ]
278 318
279 if (is_linux) { 319 if (is_linux) {
280 sources += [ "serialization/serialization_utils_unittest.cc" ] 320 sources += [ "serialization/serialization_utils_unittest.cc" ]
281 deps += [ ":serialization" ] 321 deps += [ ":serialization" ]
282 } 322 }
323
324 if (is_chromeos) {
325 deps += [ ":leak_detector_unit_tests" ]
326 }
283 } 327 }
284 # TODO(GYP): metrics_chromeos 328 # 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