From 45ad8df318390b54ea6cb54b4b4b320875f9c88f Mon Sep 17 00:00:00 2001 From: Anna Henningsen Date: Sun, 1 Jul 2018 01:27:09 +0200 Subject: src: make heap snapshot & embedder graph accessible for tests Add methods that allow inspection of heap snapshots and a JS version of our own embedder graph. These can be used in tests and might also prove useful for ad-hoc debugging. Usage requires `--expose-internals` and prints a warning similar to our other modules whose primary purpose is test support. PR-URL: https://github.com/nodejs/node/pull/21741 Reviewed-By: James M Snell Reviewed-By: Joyee Cheung Reviewed-By: Refael Ackermann --- src/node_internals.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/node_internals.h') diff --git a/src/node_internals.h b/src/node_internals.h index 860566e314..f29812e26e 100644 --- a/src/node_internals.h +++ b/src/node_internals.h @@ -111,6 +111,7 @@ struct sockaddr; V(domain) \ V(fs) \ V(fs_event_wrap) \ + V(heap_utils) \ V(http2) \ V(http_parser) \ V(inspector) \ -- cgit v1.2.3