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

Method findOrInsertLine

internal/graph/graph.go:595–604  ·  view source on GitHub ↗
(l *profile.Location, li profile.Line, o *Options)

Source from the content-addressed store, hash-verified

593}
594
595func (nm NodeMap) findOrInsertLine(l *profile.Location, li profile.Line, o *Options) *Node {
596 var objfile string
597 if m := l.Mapping; m != nil && m.File != "" {
598 objfile = m.File
599 }
600
601 ni := nodeInfo(l, li, objfile, o)
602
603 return nm.FindOrInsertNode(ni, o.KeptNodes)
604}
605
606func nodeInfo(l *profile.Location, line profile.Line, objfile string, o *Options) NodeInfo {
607 if line.Function == nil {

Callers 2

newTreeFunction · 0.80
CreateNodesFunction · 0.80

Calls 2

FindOrInsertNodeMethod · 0.95
nodeInfoFunction · 0.85

Tested by

no test coverage detected