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 AbsoluteChange ¶ added in v1.5.1
type FunctionChangeResult ¶
type FunctionChangeResult struct {
FunctionName string `json:"function_name"`
ChangeType string `json:"change_type"`
FlatChangePercent float64 `json:"flat_change_percent"`
CumChangePercent float64 `json:"cum_change_percent"`
FlatAbsolute AbsoluteChange `json:"flat_absolute"`
CumAbsolute AbsoluteChange `json:"cum_absolute"`
Timestamp time.Time `json:"timestamp"`
}
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)
CheckPerformanceDifferences creates the profile report by comparing data from prof's auto run.
func CheckPerformanceDifferencesManual ¶
func CheckPerformanceDifferencesManual(baselineProfile, currentProfile string) (*ProfileChangeReport, error)
CheckPerformanceDifferences creates the profile report by comparing data from prof's auto run.
func (*ProfileChangeReport) ChooseOutputFormat ¶ added in v1.5.1
func (r *ProfileChangeReport) ChooseOutputFormat(outputFormat string)
func (*ProfileChangeReport) WorstRegression ¶ added in v1.6.0
func (r *ProfileChangeReport) WorstRegression() *FunctionChangeResult
WorstRegression returns the single worst regression by flat change percent. Returns nil if there are no regressions.
Click to show internal directories.
Click to hide internal directories.