timecost

package
v0.0.0-...-32dd021 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2022 License: LGPL-2.1 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AggCost

func AggCost(name string, cost time.Duration)

func AggHandleTime

func AggHandleTime(name string) func()

聚合统计操作耗时,在重要的操作开始处调用,并在后续通过defer调用闭包匿名方法计算时间消耗

func GetAllCost

func GetAllCost() []*tree

func GetCost

func GetCost(name string) *tree

Types

This section is empty.

Jump to

Keyboard shortcuts

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