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

Function main

benchmark/util/inspect-proxy.js:12–23  ·  view source on GitHub ↗
({ n, showProxy, isProxy })

Source from the content-addressed store, hash-verified

10});
11
12function main({ n, showProxy, isProxy }) {
13 let proxyA = {};
14 let proxyB = () => {};
15 if (isProxy) {
16 proxyA = new Proxy(proxyA, { get: () => {} });
17 proxyB = new Proxy(proxyB, {});
18 }
19 bench.start();
20 for (let i = 0; i < n; i += 1)
21 util.inspect({ a: proxyA, b: proxyB }, { showProxy });
22 bench.end(n);
23}

Callers

nothing calls this directly

Calls 3

inspectMethod · 0.80
startMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…