util

package
v0.0.0-...-d18bf32 Latest Latest
Warning

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

Go to latest
Published: May 12, 2014 License: BSD-2-Clause Imports: 5 Imported by: 0

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 Diff

func Diff(a, b string) string

Types

type ProfToken

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

func (*ProfToken) Exit

func (pt *ProfToken) Exit()

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 Profileentry

type Profileentry struct {
	Calls   int
	Tottime time.Duration
}

type Profiler

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

func (*Profiler) Enter

func (p *Profiler) Enter(name string) ProfToken

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

func (Profiler) String

func (p Profiler) String() (ret string)

Jump to

Keyboard shortcuts

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