(entryTypes)
| 138 | } |
| 139 | |
| 140 | function maybeDecrementObserverCounts(entryTypes) { |
| 141 | for (const type of entryTypes) { |
| 142 | const observerType = getObserverType(type); |
| 143 | |
| 144 | if (observerType !== undefined) { |
| 145 | observerCounts[observerType]--; |
| 146 | |
| 147 | if (observerType === NODE_PERFORMANCE_ENTRY_TYPE_GC && |
| 148 | observerCounts[observerType] === 0) { |
| 149 | removeGarbageCollectionTracking(); |
| 150 | gcTrackingInstalled = false; |
| 151 | } |
| 152 | } |
| 153 | } |
| 154 | } |
| 155 | |
| 156 | function maybeIncrementObserverCount(type) { |
| 157 | const observerType = getObserverType(type); |
no test coverage detected