trace

package
v1.5.8 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2020 License: MIT Imports: 6 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 开始跟踪

func TraceStartWithTime added in v1.4.12

func TraceStartWithTime(family, title string, expvar bool, start time.Time) *ProxyTrace

TraceStartWithTime 开始跟踪

Jump to

Keyboard shortcuts

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