debug

package
v0.0.0-...-a8cc34e Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2020 License: LGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const DEBUG = true

Variables

This section is empty.

Functions

func Average

func Average(name string, num int64)

func Result

func Result()

Types

type Profiler

type Profiler struct {
	sync.Mutex
	PointTimeMap    map[string]int64
	PointCountMap   map[string]int
	AverageValueMap map[string]int64
	AverageCountMap map[string]int
}

func (*Profiler) Average

func (p *Profiler) Average(name string, num int64)

func (*Profiler) Result

func (p *Profiler) Result()

func (*Profiler) Start

func (p *Profiler) Start(name string) *Timer

type Timer

type Timer struct {
	Name  string
	Begin int64
	// contains filtered or unexported fields
}

func Start

func Start(name string) *Timer

func (*Timer) Stop

func (t *Timer) Stop()

Jump to

Keyboard shortcuts

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