debugstats

package
v2.9.0 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NaN = math.NaN()

Functions

This section is empty.

Types

type CallStats

type CallStats struct {
	// contains filtered or unexported fields
}

func NewCallStats

func NewCallStats() *CallStats

func (*CallStats) Add

func (c *CallStats) Add(k string, dur time.Duration)

func (*CallStats) Report

func (c *CallStats) Report(title string) (r string)

func (*CallStats) Reset

func (w *CallStats) Reset()

type LineSorter

type LineSorter struct {
	Line string
	Tot  float64
}

type SortByTot

type SortByTot []*LineSorter

func (SortByTot) Len

func (p SortByTot) Len() int

func (SortByTot) Less

func (p SortByTot) Less(i, j int) bool

func (SortByTot) Swap

func (p SortByTot) Swap(i, j int)

Jump to

Keyboard shortcuts

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