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

Function stopPerf

lib/internal/perf/observe.js:553–567  ·  view source on GitHub ↗
(target, key, context = kEmptyObject)

Source from the content-addressed store, hash-verified

551}
552
553function stopPerf(target, key, context = kEmptyObject) {
554 const ctx = target[key];
555 if (!ctx) {
556 return;
557 }
558 const startTime = ctx.startTime;
559 const entry = createPerformanceNodeEntry(
560 ctx.name,
561 ctx.type,
562 startTime,
563 now() - startTime,
564 { ...ctx.detail, ...context.detail },
565 );
566 enqueue(entry);
567}
568
569module.exports = {
570 PerformanceObserver,

Callers 14

parserOnIncomingClientFunction · 0.85
afterConnectFunction · 0.85
onlookupFunction · 0.85
onlookupallFunction · 0.85
onlookupserviceFunction · 0.85
_http_server.jsFile · 0.85
onresolveFunction · 0.85
onlookupFunction · 0.85
onlookupallFunction · 0.85
onlookupserviceFunction · 0.85
onresolveFunction · 0.85
[kFinishClose]Method · 0.85

Calls 3

enqueueFunction · 0.70
nowFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…