trace

package
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EnableTracing = false

EnableTracing controls whether to trace using the golang.org/x/net/trace package.

Functions

func GetFamilyDetailString

func GetFamilyDetailString(family string, bucket int) string

func GetFamilyTotalString

func GetFamilyTotalString(family string) string

func Init

func Init(enableTracing bool, checkip bool)

func TraceErrorf

func TraceErrorf(pt *ProxyTrace, format string, a ...interface{})

func TraceFinish

func TraceFinish(pt *ProxyTrace)

func TraceFinishWithExpvar

func TraceFinishWithExpvar(pt *ProxyTrace, traceDefer func(*expvar.Map, int64))

func TracePrintf

func TracePrintf(pt *ProxyTrace, format string, a ...interface{})

Types

type ProxyTrace

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

ProxyTrace 跟踪

func TraceStart

func TraceStart(family, title string, expvar bool) *ProxyTrace

TraceStart 开始跟踪

Jump to

Keyboard shortcuts

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