Documentation ¶
Overview ¶
Contains various utility functions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Prof = Profiler{/* contains filtered or unexported fields */}
Functions ¶
func PascalCaseToSnakeCase ¶
Types ¶
type Op ¶
type Op int
A comparison operation used in context queries.
const ( OpEqual Op = iota //< Compare for equality. OpNotEqual //< Compare for difference. OpRegexMatch //< Compare for a regular expression match. OpNotRegexMatch //< Compare for a regular expression difference. OpRegexContains //< Compare whether the given regular expression matches some substring of the operand. OpNotRegexContains //< Compare whether the given regular expression does not match some substring of the operand. )
func (*Op) UnmarshalJSON ¶
type ProfileEntry ¶
type ProfileResult ¶
type ProfileResult struct { Name string ProfileEntry }
func (*ProfileResult) Avg ¶
func (v *ProfileResult) Avg() time.Duration
func (ProfileResult) String ¶
func (v ProfileResult) String() string
type Profiler ¶
type Profiler struct {
// contains filtered or unexported fields
}
func (*Profiler) Results ¶
func (p *Profiler) Results() (ret []ProfileResult)
func (*Profiler) SortByAvgTime ¶
func (p *Profiler) SortByAvgTime() []ProfileResult
func (*Profiler) SortByName ¶
func (p *Profiler) SortByName() []ProfileResult
func (*Profiler) SortByTotalTime ¶
func (p *Profiler) SortByTotalTime() []ProfileResult
Click to show internal directories.
Click to hide internal directories.