mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05:00
- 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>
22 lines
544 B
JavaScript
22 lines
544 B
JavaScript
// Flags: --expose-internals
|
|
'use strict';
|
|
const common = require('../common');
|
|
|
|
common.skipIfInspectorDisabled();
|
|
|
|
const { validateSnapshotNodes } = require('../common/heap');
|
|
const inspector = require('inspector');
|
|
|
|
const session = new inspector.Session();
|
|
validateSnapshotNodes('JSBindingsConnection', []);
|
|
session.connect();
|
|
validateSnapshotNodes('JSBindingsConnection', [
|
|
{
|
|
children: [
|
|
{ name: 'session' },
|
|
{ name: 'Connection' },
|
|
(node) => node.type === 'closure' || typeof node.value === 'function'
|
|
]
|
|
}
|
|
]);
|