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

Function enqueue

lib/internal/perf/observe.js:387–394  ·  view source on GitHub ↗

* https://www.w3.org/TR/performance-timeline/#dfn-queue-a-performanceentry * * Add the performance entry to the interested performance observer's queue.

(entry)

Source from the content-addressed store, hash-verified

385 * Add the performance entry to the interested performance observer's queue.
386 */
387function enqueue(entry) {
388 if (!isPerformanceEntry(entry))
389 throw new ERR_INVALID_ARG_TYPE('entry', 'PerformanceEntry', entry);
390
391 for (const obs of kObservers) {
392 obs[kMaybeBuffer](entry);
393 }
394}
395
396/**
397 * Add the user timing entry to the global buffer.

Callers 6

markResourceTimingFunction · 0.70
processCompleteFunction · 0.70
observerCallbackFunction · 0.70
stopPerfFunction · 0.70
markFunction · 0.70
measureFunction · 0.70

Calls 1

isPerformanceEntryFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…