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

Function newSourceReader

internal/report/source.go:960–967  ·  view source on GitHub ↗
(searchPath, trimPath string)

Source from the content-addressed store, hash-verified

958}
959
960func newSourceReader(searchPath, trimPath string) *sourceReader {
961 return &sourceReader{
962 searchPath,
963 trimPath,
964 make(map[string][]string),
965 make(map[string]error),
966 }
967}
968
969func (reader *sourceReader) fileError(path string) error {
970 return reader.errors[path]

Callers 2

printSourceFunction · 0.85
newSourcePrinterFunction · 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…