Documentation
¶
Index ¶
- func GetAll() map[string]map[string]*Stat
- func GetDefaultAggregationPeriodMs() int64
- func Merge(rhs map[string]map[string]*Stat)
- func ResetAll()
- func Round(nanos int64) float64
- func SetDefaultAggregationPeriodMs(ms int64)
- type PerfStat
- type Stat
- func (s *Stat) GetAvgTimeMs() float64
- func (s *Stat) GetAvgTimeSampleMs() float64
- func (s *Stat) GetFullName() string
- func (s *Stat) GetLeapTimeMs() float64
- func (s *Stat) GetLeapsCount() int64
- func (s *Stat) GetLeapsCountSample() int64
- func (s *Stat) GetMaxTimeMs() float64
- func (s *Stat) GetMaxTimeSampleMs() float64
- func (s *Stat) GetMinTimeMs() float64
- func (s *Stat) GetMinTimeSampleMs() float64
- func (s *Stat) GetName() string
- func (s *Stat) GetPeersCount() int64
- func (s *Stat) GetTotalTimeMs() float64
- func (s *Stat) GetType() string
- func (s *Stat) Reset()
- func (s *Stat) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDefaultAggregationPeriodMs ¶
func GetDefaultAggregationPeriodMs() int64
func SetDefaultAggregationPeriodMs ¶
func SetDefaultAggregationPeriodMs(ms int64)
Types ¶
type PerfStat ¶
type PerfStat struct {
// contains filtered or unexported fields
}
Record/calculate performance statistic for aggregation period and grand total.
Create an instance per component
perf := perfstat.ForName("domain")
Use in method
t := perf.Start() ... calculations fmt.Printf("%f ms\n", perfstat.Round(perf.Stop(t)))
Once per aggregation time period flush samples somethere for Graphana to pick-up
func ForTypeName ¶
func ForTypeNamePeriod ¶
func (*PerfStat) GetFullName ¶
type Stat ¶
type Stat struct {
// contains filtered or unexported fields
}
func GetByTypeName ¶
func (*Stat) GetAvgTimeMs ¶
func (*Stat) GetAvgTimeSampleMs ¶
func (*Stat) GetFullName ¶
func (*Stat) GetLeapTimeMs ¶
func (*Stat) GetLeapsCount ¶
func (*Stat) GetLeapsCountSample ¶
func (*Stat) GetMaxTimeMs ¶
func (*Stat) GetMaxTimeSampleMs ¶
func (*Stat) GetMinTimeMs ¶
func (*Stat) GetMinTimeSampleMs ¶
func (*Stat) GetPeersCount ¶
func (*Stat) GetTotalTimeMs ¶
Click to show internal directories.
Click to hide internal directories.