agg

package
v1.15.1 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(f NewAggFunc)

Types

type Aggregator

type Aggregator interface {
	Add(result stats.Result, iteration int)
	// TODO: Merge(other Aggregator) Aggregator for multi-threaded aggregations (optional optimization)
	Flush(result *Result)
}

type FloatStat

type FloatStat struct {
	Min  float64 `json:"min"`
	Max  float64 `json:"max"`
	Mean float64 `json:"mean"`
	SD   float64 `json:"sd"`
}

type IntStat

type IntStat struct {
	Min  int     `json:"min"`
	Max  int     `json:"max"`
	Mean float64 `json:"mean"`
	SD   float64 `json:"sd"`
}

type LegacyStats

type LegacyStats struct {
	DamageByChar          []map[string]FloatStat
	DamageInstancesByChar []map[string]IntStat
	DamageByCharByTargets []map[int]FloatStat
	CharActiveTime        []IntStat
	AbilUsageCountByChar  []map[string]IntStat
	ParticleCount         map[string]FloatStat
	ReactionsTriggered    map[string]IntStat
	ElementUptime         []map[string]IntStat
	DPSByTarget           map[int]FloatStat
	DamageOverTime        map[string]FloatStat
}

TODO: remove. just backporting of the old stats collection for supporting current UI and tools

type NewAggFunc

type NewAggFunc func(cfg *ast.ActionList) (Aggregator, error)

func Aggregators

func Aggregators() []NewAggFunc

type Result

type Result struct {
	// metadata
	MinSeed  uint64    `json:"min_seed"`
	MaxSeed  uint64    `json:"max_seed"`
	Duration FloatStat `json:"duration"`

	// overview
	TotalDamage FloatStat `json:"total_damage"`
	DPS         FloatStat `json:"dps"`

	// legacy. needs to be removed
	Legacy LegacyStats
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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