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

Unified Diff: components/metrics.gypi

Issue 986503002: components/metrics: Add runtime memory leak detector (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix portability issues for sizes and addresses Created 5 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 side-by-side diff with in-line comments
Download patch
Index: components/metrics.gypi
diff --git a/components/metrics.gypi b/components/metrics.gypi
index e2e1c49b701ceb67d40986f493b7f184da6036cd..88984bdcd181fb988c90fce9c2b6b4d14444f1d7 100644
--- a/components/metrics.gypi
+++ b/components/metrics.gypi
@@ -80,6 +80,11 @@
'metrics/machine_id_provider_stub.cc',
],
}],
+ ['enable_leak_detector==1 and chromeos==1', {
+ 'dependencies': [
+ 'metrics_leak_detector',
+ ],
+ }],
],
},
{
@@ -102,6 +107,32 @@
],
},
{
+ 'target_name': 'metrics_leak_detector',
+ 'type': 'static_library',
+ 'include_dirs': [
+ # In these modules, the tcmalloc include path does not take precendence
+ # over the top-level chromium path.
+ '..',
+ '../third_party/tcmalloc/chromium/src',
+ ],
+ 'dependencies': [
+ '../base/base.gyp:base',
+ '../base/allocator/allocator.gyp:allocator',
+ ],
+ 'sources': [
+ 'metrics/leak_detector/call_stack_table.cc',
+ 'metrics/leak_detector/call_stack_table.h',
+ 'metrics/leak_detector/leak_analyzer.cc',
+ 'metrics/leak_detector/leak_analyzer.h',
+ 'metrics/leak_detector/leak_detector.cc',
+ 'metrics/leak_detector/leak_detector_impl.cc',
+ 'metrics/leak_detector/leak_detector_impl.h',
+ 'metrics/leak_detector/leak_detector_value_type.h',
+ 'metrics/leak_detector/ranked_list.cc',
+ 'metrics/leak_detector/ranked_list.h',
+ ],
+ },
+ {
# GN version: //components/metrics:net
'target_name': 'metrics_net',
'type': 'static_library',

Powered by Google App Engine
This is Rietveld 408576698