()
| 209 | } |
| 210 | |
| 211 | function reportPerformance() { |
| 212 | if (performance.isMeasurementEnabled()) { |
| 213 | console.log("Performance measurements: "); |
| 214 | performance.forEachMeasure((name, duration) => { |
| 215 | console.log(` ${name}: ${duration.toFixed(2)}ms`); |
| 216 | }); |
| 217 | console.log(`Total: ${performance.getTotalDuration().toFixed(2)}ms`); |
| 218 | performance.disableMeasurement(); |
| 219 | } |
| 220 | } |
| 221 | |
| 222 | function checkNodeVersion(): void { |
| 223 | const [major, minor] = process.version.slice(1).split(".").map(Number); |
no outgoing calls
no test coverage detected