visualization

package
v0.0.0-...-1db576e Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2025 License: Apache-2.0 Imports: 14 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ReportCardHeight = border*3 + instanceBoxHeight
View Source
var ReportCardWidth = border*3 + instanceBoxWidth + graphWidth

Functions

func PrintReport

func PrintReport(report *Report)

func StatsForDurations

func StatsForDurations(durations []time.Duration) (time.Duration, time.Duration, time.Duration)

Types

type ByProcessGuid

type ByProcessGuid []rep.LRP

func (ByProcessGuid) Len

func (a ByProcessGuid) Len() int

func (ByProcessGuid) Less

func (a ByProcessGuid) Less(i, j int) bool

func (ByProcessGuid) Swap

func (a ByProcessGuid) Swap(i, j int)

type Report

type Report struct {
	Cells           map[string]rep.Client
	NumAuctions     int
	AuctionResults  auctiontypes.AuctionResults
	AuctionDuration time.Duration
	CellStates      map[string]rep.CellState
	InstancesByRep  map[string][]rep.LRP
	// contains filtered or unexported fields
}

func NewReport

func NewReport(numAuctions int, cells map[string]rep.Client, results auctiontypes.AuctionResults, duration time.Duration) *Report

func (*Report) AuctionsPerSecond

func (r *Report) AuctionsPerSecond() float64

func (*Report) AuctionsPerformed

func (r *Report) AuctionsPerformed() int

func (*Report) DistributionScore

func (r *Report) DistributionScore() float64

func (*Report) InitialDistributionScore

func (r *Report) InitialDistributionScore() float64

func (*Report) IsAuctionedInstance

func (r *Report) IsAuctionedInstance(inst rep.LRP) bool

func (*Report) NMissingInstances

func (r *Report) NMissingInstances() int

func (*Report) NReps

func (r *Report) NReps() int

func (*Report) WaitTimeStats

func (r *Report) WaitTimeStats() Stat

type SVGReport

type SVGReport struct {
	SVG *svg.SVG
	// contains filtered or unexported fields
}

func StartSVGReport

func StartSVGReport(path string, width, height int, numCells int) *SVGReport

func (*SVGReport) Done

func (r *SVGReport) Done() error

func (*SVGReport) DrawReportCard

func (r *SVGReport) DrawReportCard(x, y int, report *Report)

type Stat

type Stat struct {
	Min    float64
	Max    float64
	Mean   float64
	StdDev float64
	Total  float64
}

func NewStat

func NewStat(data []float64) Stat

Jump to

Keyboard shortcuts

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