Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAllFunctionNames ¶
func GetAllFunctionNames(filePath string, filter config.FunctionFilter) (names []string, err error)
GetAllFunctionNames extracts all function names from a profile text file, applying the given filter.
func GetAllProfileLines ¶
func ShouldKeepLine ¶
func ShouldKeepLine(line string, agrs *args.LineFilterArgs) bool
ShouldKeepLine determines if a line from a profile should be kept based on profile values and ignore filters.
Types ¶
type LineObj ¶
type LineObj struct {
FnName string
Flat float64
FlatPercentage float64
SumPercentage float64
Cum float64
CumPercentage float64
}
func TurnLinesIntoObjects ¶
type ProfileFilter ¶
type ProfileFilter struct {
// Include only lines starting with specified prefix
FunctionPrefixes []string
// Ignore all functions after the last dot even if includes the above prefix
IgnoreFunctions []string
}
ProfileFilter collects filters for extracting function names from a profile.
Click to show internal directories.
Click to hide internal directories.