mirror of
https://github.com/nodejs/node.git
synced 2024-11-25 08:19:38 +01:00
3646a66044
Before the AliasedBuffers were represented solely by the TypedArrays event though they also retain additional memory themselves. Make the accounting more accurate by implementing MemoryRetainer in AliasedBuffer. PR-URL: https://github.com/nodejs/node/pull/46817 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
17 lines
471 B
JavaScript
17 lines
471 B
JavaScript
// Flags: --expose-internals
|
|
'use strict';
|
|
require('../common');
|
|
const { validateSnapshotNodes } = require('../common/heap');
|
|
const fs = require('fs').promises;
|
|
|
|
validateSnapshotNodes('Node / FSReqPromise', []);
|
|
fs.stat(__filename);
|
|
validateSnapshotNodes('Node / FSReqPromise', [
|
|
{
|
|
children: [
|
|
{ node_name: 'FSReqPromise', edge_name: 'native_to_javascript' },
|
|
{ node_name: 'Node / AliasedFloat64Array', edge_name: 'stats_field_array' },
|
|
],
|
|
},
|
|
]);
|