tracker

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2025 License: MIT Imports: 8 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 ChangeMetadata

type ChangeMetadata struct {
	Environment string
	Version     string
	TestType    string // "benchmark", "load-test", "production"
	Tags        map[string]string
}

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)

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.

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
}

Jump to

Keyboard shortcuts

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