MCPcopy Create free account
hub / github.com/nodejs/node / [kMaybeBuffer]

Method [kMaybeBuffer]

lib/internal/perf/observe.js:338–345  ·  view source on GitHub ↗
(entry)

Source from the content-addressed store, hash-verified

336 }
337
338 [kMaybeBuffer](entry) {
339 if (!this.#entryTypes.has(entry.entryType))
340 return;
341 ArrayPrototypePush(this.#buffer, entry);
342 kPending.add(this);
343 if (kPending.size)
344 queuePending();
345 }
346
347 [kDispatch]() {
348 const entryList = new PerformanceObserverEntryList(kSkipThrow, this.takeRecords());

Callers

nothing calls this directly

Calls 3

queuePendingFunction · 0.85
hasMethod · 0.65
addMethod · 0.65

Tested by

no test coverage detected