pc

package
v1.7.19 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultSendCountOnce = 35

	GoProjectsGoroutineNum = "go_projects_goroutine_num"
)

Variables

This section is empty.

Functions

func ClosePerfCounter

func ClosePerfCounter()

func Cost

func Cost(name string, cost time.Duration)

in ms

func CostFail

func CostFail(key string, val int64)

func ErrorIncr

func ErrorIncr(key string, val int64)

func Incr

func Incr(key string, val int64)

func Init

func Init()

func InitPerfCounter

func InitPerfCounter(tar string, upd updater, initKeys []string)

func SetRunPort

func SetRunPort(runPort int)

func SetSuffixDecider

func SetSuffixDecider(d DecideSuffix)

func SetUpdater

func SetUpdater(upd updater)

Types

type DecideSuffix

type DecideSuffix func(key string) string

Jump to

Keyboard shortcuts

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