* Adds process telemetry to the debugger file if necessary.
(env: BootloaderEnvironment)
| 136 | * Adds process telemetry to the debugger file if necessary. |
| 137 | */ |
| 138 | function reportTelemetry(env: BootloaderEnvironment) { |
| 139 | const callbackFile = env.inspectorOptions?.fileCallback; |
| 140 | if (!callbackFile) { |
| 141 | return; |
| 142 | } |
| 143 | |
| 144 | fs.writeFileSync(callbackFile, JSON.stringify(telemetry)); |
| 145 | env.updateInspectorOption('fileCallback', undefined); |
| 146 | } |
no test coverage detected