From 1d5fa88eb808b7dfccc800fa1613a7ae15f06e8e Mon Sep 17 00:00:00 2001 From: Anna Henningsen Date: Sun, 4 Oct 2020 12:51:05 +0200 Subject: [PATCH] cli: add --node-memory-debug option Add a public switch that turns on features for debugging memory leaks inside of Node.js core. PR-URL: https://github.com/nodejs/node/pull/35537 Reviewed-By: Richard Lau Reviewed-By: Joyee Cheung Reviewed-By: Rich Trott Reviewed-By: Colin Ihrig Reviewed-By: Michael Dawson --- doc/api/cli.md | 9 +++++++++ doc/node.1 | 4 ++++ src/node_options.cc | 6 ++++++ 3 files changed, 19 insertions(+) diff --git a/doc/api/cli.md b/doc/api/cli.md index 7242c49351b978..9d4592b7c93f5c 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -546,6 +546,14 @@ added: v6.0.0 Silence all process warnings (including deprecations). +### `--node-memory-debug` + + +Enable extra debug checks for memory leaks in Node.js internals. This is +usually only useful for developers debugging Node.js itself. + ### `--openssl-config=file`