()
| 297 | |
| 298 | // Clears all the counts in ngDevMode |
| 299 | export function resetNgDevModeCounters() { |
| 300 | if (typeof ngDevMode === 'object') { |
| 301 | // Reset all ngDevMode counters. |
| 302 | for (const metric of Object.keys(ngDevMode!)) { |
| 303 | const currentValue = (ngDevMode as unknown as {[key: string]: number | boolean})[metric]; |
| 304 | if (typeof currentValue === 'number') { |
| 305 | // Rest only numeric values, which represent counters. |
| 306 | (ngDevMode as unknown as {[key: string]: number | boolean})[metric] = 0; |
| 307 | } |
| 308 | } |
| 309 | } |
| 310 | } |
no test coverage detected
searching dependent graphs…