Documentation
¶
Index ¶
Constants ¶
View Source
const ( SeverityNoneThreshold = 0.0 SeverityLowThreshold = 5.0 SeverityModerateThreshold = 15.0 SeverityHighThreshold = 30.0 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChangeMetadata ¶
type FunctionChangeResult ¶
type FunctionChangeResult struct {
FunctionName string
ChangeType string // shared.REGRESSION, shred.IMPROVEMENT, shared.STABLE
FlatChangePercent float64
CumChangePercent float64
FlatAbsolute struct {
Before float64
After float64
Delta float64
}
CumAbsolute struct {
Before float64
After float64
Delta float64
}
Timestamp time.Time
}
func DetectChange ¶
func DetectChange(baseline, current *parser.LineObj) (*FunctionChangeResult, error)
func (*FunctionChangeResult) Report ¶
func (cr *FunctionChangeResult) Report() string
Full detailed report
func (*FunctionChangeResult) Summary ¶
func (cr *FunctionChangeResult) Summary() string
Helper method to get a summary
type ProfileChangeReport ¶
type ProfileChangeReport struct {
FunctionChanges []*FunctionChangeResult
}
func CheckPerformanceDifferences ¶
func CheckPerformanceDifferences(baselineTag, currentTag, benchName, profileType string) (*ProfileChangeReport, error)
type ProfileChangeSummary ¶
type ProfileChangeSummary struct {
TotalFunctions int
Regressions int
Improvements int
Stable int
NewFunctions int
DeletedFunctions int
WorstRegression *FunctionChangeResult // Function with biggest regression
BestImprovement *FunctionChangeResult // Function with biggest improvement
AverageFlatChange float64
}
Click to show internal directories.
Click to hide internal directories.