Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upsrc: add proper MemoryInfoName to wrappers #21939
Conversation
This comment has been minimized.
This comment has been minimized.
nodejs-github-bot
added
C++
lib / src
labels
Jul 23, 2018
joyeecheung
force-pushed the
joyeecheung:wrap-node-name
branch
from
b55b2bc
to
ad10f76
Jul 23, 2018
This comment has been minimized.
This comment has been minimized.
|
cc @addaleax |
addaleax
added
the
memory
label
Jul 23, 2018
This comment has been minimized.
This comment has been minimized.
|
Hm... I think I'd prefer it if we could stick to one naming scheme for diagnostic information we provide for |
This comment has been minimized.
This comment has been minimized.
|
@addaleax We have more wraps than just the async wraps though, if we want to stick to the naming scheme we will end up polluting all the names including those that do not have async resource provider equivalents and types of different levels, e.g. Also for tooling, it's easy to convert camel cases to upper cases, but not the way around. For the async hooks the ship may have already sailed since we have documented those types for quite some time? For heap snapshots the names are mainly used for aggregation, the users may still end up going back to the source so I don't think there is a need to document them down. |
This comment has been minimized.
This comment has been minimized.
|
just out of curiosity, do any of these not match the class name? maybe you could set it up with like typeid(this).name() or something |
This comment has been minimized.
This comment has been minimized.
|
@devsnek Some of them do, e.g. |
addaleax
approved these changes
Jul 23, 2018
|
Okay, makes sense -- I still think it would be great to eventually have consistency between this and async_hooks. It's not just casing that's different currently, though (e.g. |
cjihrig
approved these changes
Jul 23, 2018
devsnek
approved these changes
Jul 23, 2018
jasnell
approved these changes
Jul 23, 2018
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
tniessen
approved these changes
Jul 25, 2018
This comment has been minimized.
This comment has been minimized.
|
Landed in 28a3e28, thanks! |
joyeecheung commentedJul 23, 2018
•
edited
instead of their provider names (which are all in upper case)
as nodes with class names as node names. Previously some nodes are
named with reference names, which are supposed to be edge names
instead.
Before (in DevTools):

After:

Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes