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
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
Types ¶
Click to show internal directories.
Click to hide internal directories.