goworld: github.com/xiaonanln/goworld/engine/opmon Index | Files

package opmon

import "github.com/xiaonanln/goworld/engine/opmon"


Package Files


type Operation Uses

type Operation struct {
    // contains filtered or unexported fields

Operation is the type of operation to be monitored

func StartOperation Uses

func StartOperation(operationName string) *Operation

StartOperation creates a new operation

func (*Operation) Finish Uses

func (op *Operation) Finish(warnThreshold time.Duration)

Finish finishes the operation and records the duration of operation

Package opmon imports 7 packages (graph) and is imported by 3 packages. Updated 2017-08-28. Refresh now. Tools for package owners.