string dumps a text representation of a mapping. Intended mainly for debugging purposes.
()
| 602 | // string dumps a text representation of a mapping. Intended mainly |
| 603 | // for debugging purposes. |
| 604 | func (m *Mapping) string() string { |
| 605 | bits := "" |
| 606 | if m.HasFunctions { |
| 607 | bits = bits + "[FN]" |
| 608 | } |
| 609 | if m.HasFilenames { |
| 610 | bits = bits + "[FL]" |
| 611 | } |
| 612 | if m.HasLineNumbers { |
| 613 | bits = bits + "[LN]" |
| 614 | } |
| 615 | if m.HasInlineFrames { |
| 616 | bits = bits + "[IN]" |
| 617 | } |
| 618 | return fmt.Sprintf("%d: %#x/%#x/%#x %s %s %s", |
| 619 | m.ID, |
| 620 | m.Start, m.Limit, m.Offset, |
| 621 | m.File, |
| 622 | m.BuildID, |
| 623 | bits) |
| 624 | } |
| 625 | |
| 626 | // string dumps a text representation of a location. Intended mainly |
| 627 | // for debugging purposes. |
nothing calls this directly
no outgoing calls
no test coverage detected