visualization

package
v0.0.0-...-16b1a22 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

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()

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