Demangler maps symbol names to a human-readable form. This may
include C++ demangling and additional simplification. Names that
are not demangled may be missing from the resulting map.
func (*Profile).Demangle(d Demangler) error
LegacyHeapAllocated instructs the heapz parsers to use the
allocated memory stats instead of the default in-use memory. Note
that tcmalloc doesn't provide all allocated memory, only in-use
func Merge(srcs *Profile) (*Profile, error)
Merge merges all the profiles in profs into a single Profile.
Returns a new profile independent of the input profiles. The merged
profile is compacted to eliminate unused samples, locations,
functions and mappings. Profiles must have identical profile sample
and period types or the merge will fail. profile.Period of the
resulting profile will be the maximum of all profiles, and
profile.TimeNanos will be the earliest nonzero one.
func Parse(r io.Reader) (*Profile, error)
Parse parses a profile and checks for its validity. The input
may be a gzip-compressed encoded protobuf or one of many legacy
profile formats which may be unsupported in the future.
func ParseTracebacks(b byte) (*Profile, error)
ParseTracebacks parses a set of tracebacks and returns a newly
populated profile. It will accept any text file and generate a
Profile out of it with any hex addresses it can identify, including
a process map if it can recognize one. Each sample will include a
tag "source" with the addresses recognized in string format.
The pages are generated with Goldsv0.1.6-preview. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project and developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds.