Documentation ¶
Overview ¶
Package prof implements internal profiling data structures
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Profile ¶
type Profile struct {
// contains filtered or unexported fields
}
Profile keeps various load-related statistics for a worker
func (*Profile) BeginCall ¶
BeginCall starts a stop watch, measuring the duration of a call. It returns the stop watch interface.
func (*Profile) BeginReply ¶
BeginReply starts a stop watch, measuring the duration of an execution. It returns the stop watch interface.
func (*Profile) Stat ¶
func (p *Profile) Stat() *WorkerStat
type Stat ¶
type StopWatch ¶
type StopWatch interface { Stop() Abort() }
StopWatch represents a stop watch
func NewStopWatch ¶
Click to show internal directories.
Click to hide internal directories.