Documentation ¶
Index ¶
- type ProfileEntry
- type ProfileResult
- type ProfileToken
- type Profiler
- func (this *Profiler) Enter(name string) *ProfileToken
- func (this *Profiler) Results() (ret []*ProfileResult)
- func (this *Profiler) SortByAvgTime(isAcsending bool) []*ProfileResult
- func (this *Profiler) SortByName(isAcsending bool) []*ProfileResult
- func (this *Profiler) SortByTotalTime(isAcsending bool) []*ProfileResult
- func (this *Profiler) String() (ret string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProfileEntry ¶
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
Click to show internal directories.
Click to hide internal directories.