Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAllFunctionNamesV2 ¶ added in v1.8.0
func GetAllFunctionNamesV2(profilePath string, filter internal.FunctionFilter) (names []string, err error)
GetAllFunctionNamesV2 extracts all function names from a profile (.pprof) file.
Types ¶
type FuncEntry ¶ added in v1.8.0
FuncEntry represents a function with its flat value, sorted by flat value (descending)
type LineObj ¶
type LineObj struct {
FnName string
Flat float64
FlatPercentage float64
SumPercentage float64
Cum float64
CumPercentage float64
}
func TurnLinesIntoObjectsV2 ¶ added in v1.8.0
TurnLinesIntoObjectsV2 turn profile data from a .pprof file into line objects.
type ProfileData ¶ added in v1.8.0
type ProfileData struct {
Flat map[string]int64
Cum map[string]int64
Total int64
FlatPercentages map[string]float64
CumPercentages map[string]float64
SumPercentages map[string]float64
SortedEntries []FuncEntry
}
ProfileData contains the extracted flat and cumulative data from a pprof profile
Click to show internal directories.
Click to hide internal directories.