mypprof

package
v0.0.0-...-87a979f Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2016 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Enable = int32(0)
View Source
var FuncTimeM sync.RWMutex
View Source
var FuncTimeMap map[string]*FuncTypeS

Functions

func LogFuncTime

func LogFuncTime(name string, message string, start time.Time, timeLimit int64)

软件内部的耗时 单位纳秒

Types

type FuncTypeS

type FuncTypeS struct {
	Min   int64
	Max   int64
	Conut int64

	Total float64
	// contains filtered or unexported fields
}

type PrintPack

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

需要统计到 TAP 网卡到软件的耗时 每秒打印一个收到的包 非线程安全

func NewPrintPack

func NewPrintPack(name string) *PrintPack

func (*PrintPack) PrintTapPack

func (p *PrintPack) PrintTapPack(pack []byte)

Jump to

Keyboard shortcuts

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