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

Method HasFileLines

profile/profile.go:837–844  ·  view source on GitHub ↗

HasFileLines determines if all locations in this profile have symbolized file and line number information.

()

Source from the content-addressed store, hash-verified

835// HasFileLines determines if all locations in this profile have
836// symbolized file and line number information.
837func (p *Profile) HasFileLines() bool {
838 for _, l := range p.Location {
839 if l.Mapping != nil && (!l.Mapping.HasFilenames || !l.Mapping.HasLineNumbers) {
840 return false
841 }
842 }
843 return true
844}
845
846// Unsymbolizable returns true if a mapping points to a binary for which
847// locations can't be symbolized in principle, at least now. Examples are

Calls

no outgoing calls

Tested by 2

TestLocalSymbolizationFunction · 0.64