perf

package
v1.8.2 Latest Latest
Warning

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

Go to latest
Published: May 23, 2023 License: Zlib Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config added in v1.3.35

type Config struct {
	DisableLog  bool `json:"disableLog" yaml:"disableLog"`
	DisableWarn bool `json:"disableWarn" yaml:"disableWarn"`
}

type Perf

type Perf struct {
	Config
	// contains filtered or unexported fields
}

func Caller added in v0.5.28

func Caller() *Perf

func This added in v0.5.28

func This() *Perf

func (*Perf) EnableLog added in v1.4.6

func (p *Perf) EnableLog(enable bool) *Perf

func (*Perf) EnableWarn added in v1.4.6

func (p *Perf) EnableWarn(enable bool) *Perf

func (*Perf) End

func (p *Perf) End()

func (*Perf) Out added in v1.3.35

func (p *Perf) Out(detail string)

func (*Perf) Start

func (p *Perf) Start() *Perf

func (*Perf) WithModel

func (p *Perf) WithModel(model string) *Perf

func (*Perf) WithWarn

func (p *Perf) WithWarn(t int64) *Perf

Jump to

Keyboard shortcuts

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