ptrace

package
v0.0.0-...-22430d5 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2016 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

performance tracing

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Unit

func Unit(a int64) string

Types

type Int

type Int int64

func (*Int) Add

func (i *Int) Add(n int64) int64

func (*Int) AddInt

func (i *Int) AddInt(n int) int

type Rate

type Rate struct {
	Size     Size
	Duration time.Duration
}

func (Rate) String

func (i Rate) String() string

type Ratio

type Ratio struct {
	Value Int
	Count Int
}

func (*Ratio) Hit

func (r *Ratio) Hit()

func (*Ratio) HitIf

func (r *Ratio) HitIf(n bool)

func (*Ratio) HitN

func (r *Ratio) HitN(n int)

func (*Ratio) MarshalJSON

func (r *Ratio) MarshalJSON() ([]byte, error)

func (*Ratio) Miss

func (r *Ratio) Miss()

type RatioSize

type RatioSize struct {
	Size  Size
	Count Int
}

func (*RatioSize) Add

func (r *RatioSize) Add(s int64)

func (*RatioSize) AddBuf

func (r *RatioSize) AddBuf(b []byte)

func (*RatioSize) AddInt

func (r *RatioSize) AddInt(n int)

func (*RatioSize) MarshalJSON

func (r *RatioSize) MarshalJSON() ([]byte, error)

func (RatioSize) String

func (r RatioSize) String() string

type RatioTime

type RatioTime struct {
	Duration time.Duration
	Count    Int
}

func (*RatioTime) AddNow

func (r *RatioTime) AddNow(t time.Time)

func (*RatioTime) MarshalJSON

func (r *RatioTime) MarshalJSON() ([]byte, error)

func (*RatioTime) String

func (r *RatioTime) String() string

type Size

type Size int64

func (*Size) Add

func (s *Size) Add(n int64) int64

func (*Size) AddInt

func (s *Size) AddInt(n int) int

func (*Size) MarshalJSON

func (i *Size) MarshalJSON() ([]byte, error)

func (Size) Rate

func (s Size) Rate(d time.Duration) Rate

func (Size) String

func (i Size) String() string

Jump to

Keyboard shortcuts

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