(platform)
| 24 | _enableFSMonitorIfInstrumentationEnabled(); |
| 25 | |
| 26 | function _getHardwareInfo(platform) { |
| 27 | const startTime = process.hrtime(); |
| 28 | |
| 29 | Object.getOwnPropertyNames(hwinfo).forEach((metric) => (platform[metric] = hwinfo[metric]())); |
| 30 | |
| 31 | const collectionTime = process.hrtime(startTime); |
| 32 | |
| 33 | // Convert from integer [seconds, nanoseconds] to floating-point milliseconds. |
| 34 | platform.collectionTime = collectionTime[0] * 10e3 + collectionTime[1] / 10e6; |
| 35 | } |
| 36 | |
| 37 | class Instrumentation { |
| 38 | /** |
no outgoing calls
no test coverage detected
searching dependent graphs…