code: func newLocInfo(l *profile.Location) []nodeInfo {
  	var objfile string
  
  	if m := l.Mapping; m != nil {
  		objfile = filepath.Base(m.File)
  	}
  
  	if len(l.Line) == 0 {
  		return []nodeInfo{
  			{
  				address: l.Address,
  				objfile: objfile,
  			},
  		}
  	}
  	var info []nodeInfo
  	numInlineFrames := len(l.Line) - 1
  	for li, line := range l.Line {
  		ni := nodeInfo{
  			address: l.Address,
  			lineno:  int(line.Line),
  			inline:  li < numInlineFrames,
  			objfile: objfile,
  		}
  
  		if line.Function != nil {
  			ni.name = line.Function.Name
  			ni.origName = line.Function.SystemName
  			ni.file = line.Function.Filename
  			ni.startLine = int(line.Function.StartLine)
  		}
  
  		info = append(info, ni)
  	}
  	return info
  }
docs: // Create a slice of formatted names for a location.