MCPcopy Index your code
hub / github.com/nodejs/node / buildEmbedderGraph

Function buildEmbedderGraph

test/common/heap.js:6–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4
5let _buildEmbedderGraph;
6function buildEmbedderGraph() {
7 if (_buildEmbedderGraph) { return _buildEmbedderGraph(); }
8 let internalBinding;
9 try {
10 internalBinding = require('internal/test/binding').internalBinding;
11 } catch (e) {
12 console.error('The test must be run with `--expose-internals`');
13 throw e;
14 }
15
16 ({ buildEmbedderGraph: _buildEmbedderGraph } = internalBinding('heap_utils'));
17 return _buildEmbedderGraph();
18}
19
20const { getHeapSnapshot } = require('v8');
21

Callers 1

constructorMethod · 0.85

Calls 2

requireFunction · 0.50
errorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…