MCPcopy Create free account
hub / github.com/google/pprof / canonicalizeFileName

Function canonicalizeFileName

internal/report/source.go:1112–1116  ·  view source on GitHub ↗
(fname string)

Source from the content-addressed store, hash-verified

1110}
1111
1112func canonicalizeFileName(fname string) string {
1113 fname = strings.TrimPrefix(fname, "/proc/self/cwd/")
1114 fname = strings.TrimPrefix(fname, "./")
1115 return filepath.Clean(fname)
1116}

Callers 1

addStackMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…