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

Function callback

test/parallel/test-performanceobserver.js:66–71  ·  view source on GitHub ↗
(list, obs)

Source from the content-addressed store, hash-verified

64 new PerformanceObserver(common.mustCall(callback));
65
66 function callback(list, obs) {
67 assert.strictEqual(obs, observer);
68 const entries = list.getEntries();
69 assert.strictEqual(entries.length, 3);
70 observer.disconnect();
71 }
72 observer.observe({ entryTypes: ['mark', 'node'] });
73 performance.mark('test1');
74 performance.mark('test2');

Callers

nothing calls this directly

Calls 2

disconnectMethod · 0.65
getEntriesMethod · 0.45

Tested by

no test coverage detected