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

Function maybeIncrementObserverCount

lib/internal/perf/observe.js:156–167  ·  view source on GitHub ↗
(type)

Source from the content-addressed store, hash-verified

154}
155
156function maybeIncrementObserverCount(type) {
157 const observerType = getObserverType(type);
158
159 if (observerType !== undefined) {
160 observerCounts[observerType]++;
161 if (!gcTrackingInstalled &&
162 observerType === NODE_PERFORMANCE_ENTRY_TYPE_GC) {
163 installGarbageCollectionTracking();
164 gcTrackingInstalled = true;
165 }
166 }
167}
168
169const kSkipThrow = Symbol('kSkipThrow');
170const performanceObserverSorter = (first, second) => {

Callers 1

observeMethod · 0.85

Calls 1

getObserverTypeFunction · 0.85

Tested by

no test coverage detected