utils

package
v1.4.5 Latest Latest
Warning

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

Go to latest
Published: May 4, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package utils provide some common utilities

Index

Constants

This section is empty.

Variables

View Source
var PercentileMap = map[string]float64{}

PercentileMap ...

Functions

func AppendResult

func AppendResult(stat ResultStats, offset int64, schemaID uint32, lock *sync.RWMutex)

AppendResult will map the results to a storeable map

func BuildPercentileMap added in v1.3.0

func BuildPercentileMap(s map[string]int)

BuildPercentileMap will calculate the percentile into a map

func CalcStat

func CalcStat(stat ResultStats, schemaID uint32, lock *sync.RWMutex)

CalcStat keep on track the stats

func DumpStats

func DumpStats(stat ResultStats, path string)

DumpStats will print the results into a file

func GenChart added in v1.3.0

func GenChart()

GenChart will generate a Pie Chart based on data

Types

type ResultStats

type ResultStats struct {
	StatMap     map[string]int
	ResultStore map[uint32][]int
}

ResultStats ...

Jump to

Keyboard shortcuts

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