Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FileToSortedProfile ¶
FileToSortedProfile reads a file containing possibly compressed protobuf form of pprof data, and returns the profile.Profile contained with, plus the Sample[*].Value index of the sample count and the sum of those counts.
Types ¶
type ProfileItem ¶
ProfileItem represents one sample location, and provides the percentage of the total and the outermost-first slice of file-and-line positions.
func FromProtoBuf ¶
func FromProtoBuf(profiles []string, combine, innermost bool, verbose int) ([]*ProfileItem, error)
FromProtoBuf runs go tool pprof on the supplied profiles to generate the (-flat, -lines) protobuf output, and then processes that protobuf to yield a sorted profile of sample percentages and sample locations. If combine is true, samples with equal file(s) and line(s) are merged.
Click to show internal directories.
Click to hide internal directories.