src: add proper MemoryInfoName to wrappers

- Use camel case names for memory retainers inherited from AsyncWrap
  instead of their provider names (which are all in upper case)
- Assign class names to wraps so that they appear in the heap snapshot
  as nodes with class names as node names. Previously some nodes are
  named with reference names, which are supposed to be edge names
  instead.

PR-URL: https://github.com/nodejs/node/pull/21939
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
This commit is contained in:
Joyee Cheung committed 2018-07-27 15:51:19 +08:00
1 parent 48e5b350b3
commit 28a3e280ec
39 files changed
+176 -29

No files matched your search

+2
View File
@@ -51,6 +51,8 @@ class SABLifetimePartner : public BaseObject {
tracker->TrackThis(this);
}
ADD_MEMORY_INFO_NAME(SABLifetimePartner)
SharedArrayBufferMetadataReference reference;
};