perf

package
v1.20.102 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2024 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

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 C

func C() *Perf

C caller

func T

func T() *Perf

T OWNER

func (*Perf) EnableLog

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

func (*Perf) EnableWarn

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

func (*Perf) End

func (p *Perf) End()

func (*Perf) Out

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) WithPerfId

func (p *Perf) WithPerfId(id string) *Perf

func (*Perf) WithWarn

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

type RunTime

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

func Begin

func Begin(warn int64) *RunTime

func (*RunTime) End

func (t *RunTime) End() int64

func (*RunTime) Start

func (t *RunTime) Start() int64

Jump to

Keyboard shortcuts

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