(c *stack.Call)
| 50 | ) |
| 51 | |
| 52 | func (pf pathFormat) formatCall(c *stack.Call) string { |
| 53 | switch pf { |
| 54 | case relPath: |
| 55 | if c.RelSrcPath != "" { |
| 56 | return fmt.Sprintf("%s:%d", c.RelSrcPath, c.Line) |
| 57 | } |
| 58 | fallthrough |
| 59 | case fullPath: |
| 60 | if c.LocalSrcPath != "" { |
| 61 | return fmt.Sprintf("%s:%d", c.LocalSrcPath, c.Line) |
| 62 | } |
| 63 | return fmt.Sprintf("%s:%d", c.RemoteSrcPath, c.Line) |
| 64 | default: |
| 65 | return fmt.Sprintf("%s:%d", c.SrcName, c.Line) |
| 66 | } |
| 67 | } |
| 68 | |
| 69 | func (pf pathFormat) createdByString(s *stack.Signature) string { |
| 70 | if len(s.CreatedBy.Calls) == 0 { |
no outgoing calls