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

Unified Diff: components/metrics/leak_detector/leak_detector.gni

Issue 1681263003: metrics: Add leak detector controller in Chrome OS metrics system (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use new build flag generation system; Define var 'enable_leak_detector' locally Created 4 years, 10 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/leak_detector/leak_detector.gni
diff --git a/components/metrics/leak_detector/leak_detector.gni b/components/metrics/leak_detector/leak_detector.gni
new file mode 100644
index 0000000000000000000000000000000000000000..92dc2cde90fb3ef7b3ce854e4e916d74f9067da8
--- /dev/null
+++ b/components/metrics/leak_detector/leak_detector.gni
@@ -0,0 +1,15 @@
+# Copyright 2016 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+# This is the GN equivalent of
+# //components/metrics/leak_detector/leak_detector.gypi.
+# Please keep in sync.
+
+declare_args() {
+ # Build runtime memory leak detector as part of Chrome. Enabling this without
+ # tuning its input parameters on may incur substantial CPU and memory
+ # overhead, as it is intended to be invoked during heap allocations and frees.
+ # It also requires Chrome to be compiled with frame pointer in order to work.
+ enable_leak_detector = false
+}

Powered by Google App Engine
This is Rietveld 408576698