src: enable more detailed memory tracking
Splitting out from https://github.com/nodejs/node/pull/21741:
This will enable more detailed heap snapshots based on a newer V8 API.
This commit itself is not tied to that API and could be backported.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
commit message follows commit guidelines