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

Method string

profile/profile.go:604–624  ·  view source on GitHub ↗

string dumps a text representation of a mapping. Intended mainly for debugging purposes.

()

Source from the content-addressed store, hash-verified

602// string dumps a text representation of a mapping. Intended mainly
603// for debugging purposes.
604func (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.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected