profile

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProfileEntry

type ProfileEntry struct {
	Calls     int
	TotalTime time.Duration
}

type ProfileResult

type ProfileResult struct {
	Name string
	// contains filtered or unexported fields
}

func Results

func Results(name string) []*ProfileResult

func SortByAvgTime

func SortByAvgTime(isAcsending bool) []*ProfileResult

func SortByName

func SortByName(isAcsending bool) []*ProfileResult

func SortByTotalTime

func SortByTotalTime(isAcsending bool) []*ProfileResult

func (*ProfileResult) Avg

func (this *ProfileResult) Avg() time.Duration

func (ProfileResult) String

func (this ProfileResult) String() string

type ProfileToken

type ProfileToken struct {
	Name string
	// contains filtered or unexported fields
}

func Enter

func Enter(name string) *ProfileToken

func (*ProfileToken) Exit

func (this *ProfileToken) Exit()

type Profiler

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

func (*Profiler) Enter

func (this *Profiler) Enter(name string) *ProfileToken

func (*Profiler) Results

func (this *Profiler) Results() (ret []*ProfileResult)

func (*Profiler) SortByAvgTime

func (this *Profiler) SortByAvgTime(isAcsending bool) []*ProfileResult

func (*Profiler) SortByName

func (this *Profiler) SortByName(isAcsending bool) []*ProfileResult

func (*Profiler) SortByTotalTime

func (this *Profiler) SortByTotalTime(isAcsending bool) []*ProfileResult

func (*Profiler) String

func (this *Profiler) String() (ret string)

Jump to

Keyboard shortcuts

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