helper

package
v1.7.8 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const ProfDumpBackupDir = "./prof"
View Source
const ProfDumpDir = "prof"

Variables

This section is empty.

Functions

func CpuProfiling

func CpuProfiling(s int64)

func FormatMemStats

func FormatMemStats(m1, m2 *runtime.MemStats) string

func GcStats

func GcStats() string

func MemStats

func MemStats() string

func MemStats2

func MemStats2() string

func RuntimeStats

func RuntimeStats(d time.Duration, f func(string))

get runtime stats,contained goroutine numbers,gc pause,heap objects,heap alloc and malloc

func WriteBlock

func WriteBlock()

func WriteGoroutine

func WriteGoroutine()

func WriteHeap

func WriteHeap()

func WriteMutex

func WriteMutex()

func WriteThreadCreate

func WriteThreadCreate()

Types

type DeployFunc

type DeployFunc func([]string) string

type FindFunc

type FindFunc func(key string) (string, error)

type Helper

type Helper struct {
	Host     int `inject:"helperHost"`
	Updater  UpdateFunc
	Finder   FindFunc
	Perfer   PerfFunc
	Stater   StatusFunc
	Deployer DeployFunc
	// contains filtered or unexported fields
}

func (*Helper) Close

func (helper *Helper) Close()

func (*Helper) Start

func (helper *Helper) Start() error

type PerfFunc

type PerfFunc func() string

type StatusFunc

type StatusFunc func() string

type UpdateFunc

type UpdateFunc func(Key, Value, Type string, Offset int64) bool

Jump to

Keyboard shortcuts

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