(l *profile.Location, li profile.Line, o *Options)
| 593 | } |
| 594 | |
| 595 | func (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 | |
| 606 | func nodeInfo(l *profile.Location, line profile.Line, objfile string, o *Options) NodeInfo { |
| 607 | if line.Function == nil { |
no test coverage detected