Documentation
¶
Index ¶
- func CollectOrRemoveHeader(scanner *bufio.Scanner, profileType string, lines *[]string, shouldRemove bool)
- func GetAllFunctionNames(filePath string, filter ProfileFilter) (names []string, err error)
- func GetAllProfileLines(scanner *bufio.Scanner, lines *[]string)
- func ShouldKeepLine(line string, agrs *args.LineFilterArgs) bool
- type LineObj
- type ProfileFilter
- type ProfileFloats
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CollectOrRemoveHeader ¶
func GetAllFunctionNames ¶
func GetAllFunctionNames(filePath string, filter ProfileFilter) (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.