tracker

package
v1.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 18, 2025 License: MIT Imports: 14 Imported by: 0

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 AbsoluteChange struct {
	Before float64 `json:"before"`
	After  float64 `json:"after"`
	Delta  float64 `json:"delta"`
}

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL