(pprof: PprofModule)
| 46 | } |
| 47 | |
| 48 | async function createSourceMapper(pprof: PprofModule) { |
| 49 | const sourcemapDirs = getSourcemapDirs() |
| 50 | |
| 51 | if (sourcemapDirs.length === 0) { |
| 52 | return undefined |
| 53 | } |
| 54 | |
| 55 | return pprof.SourceMapper.create(sourcemapDirs) |
| 56 | } |
| 57 | |
| 58 | function formatTimestamp() { |
| 59 | return new Date().toISOString().replace(/[:.]/g, '-') |
no test coverage detected