MCPcopy Create free account
hub / github.com/TanStack/router / createSourceMapper

Function createSourceMapper

benchmarks/memory/flame-control.ts:48–56  ·  view source on GitHub ↗
(pprof: PprofModule)

Source from the content-addressed store, hash-verified

46}
47
48async 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
58function formatTimestamp() {
59 return new Date().toISOString().replace(/[:.]/g, '-')

Callers 1

profileFlameWorkloadFunction · 0.85

Calls 2

getSourcemapDirsFunction · 0.85
createMethod · 0.65

Tested by

no test coverage detected