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
2018-07-22 09:12:19 +08:00
parent 48e5b350b3
commit 28a3e280ec
39 changed files with 176 additions and 29 deletions

View File

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