package module
Version: v0.1.8 Latest Latest

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

Go to latest
Published: Nov 18, 2018 License: MIT Imports: 16 Imported by: 0






View Source
const (
	SortCount                  = "Count"
	SortUri                    = "Uri"
	SortMethod                 = "Method"
	SortMaxResponseTime        = "MaxResponseTime"
	SortMinResponseTime        = "MinResponseTime"
	SortSumResponseTime        = "SumResponseTime"
	SortAvgResponseTime        = "AvgResponseTime"
	SortP1ResponseTime         = "P1ResponseTime"
	SortP50ResponseTime        = "P50ResponseTime"
	SortP90ResponseTime        = "P90ResponseTime"
	SortP99ResponseTime        = "P99ResponseTime"
	SortStddevResponseTime     = "StddevResponseTime"
	SortMaxRequestBodySize     = "MaxRequestBodySize"
	SortMinRequestBodySize     = "MinRequestBodySize"
	SortSumRequestBodySize     = "SumRequestBodySize"
	SortAvgRequestBodySize     = "AvgRequestBodySize"
	SortP1RequestBodySize      = "P1RequestBodySize"
	SortP50RequestBodySize     = "P50RequestBodySize"
	SortP90RequestBodySize     = "P90RequestBodySize"
	SortP99RequestBodySize     = "P99RequestBodySize"
	SortStddevRequestBodySize  = "StddevRequestBodySize"
	SortMaxResponseBodySize    = "MaxResponseBodySize"
	SortMinResponseBodySize    = "MinResponseBodySize"
	SortSumResponseBodySize    = "SumResponseBodySize"
	SortAvgResponseBodySize    = "AvgResponseBodySize"
	SortP1ResponseBodySize     = "P1ResponseBodySize"
	SortP50ResponseBodySize    = "P50ResponseBodySize"
	SortP90ResponseBodySize    = "P90ResponseBodySize"
	SortP99ResponseBodySize    = "P99ResponseBodySize"
	SortStddevResponseBodySize = "StddevResponseBodySize"


View Source
var (
	SkipReadLineErr = errors.New("Skip read line")


func CompileUriGroups added in v0.1.6

func CompileUriGroups(groups []string) ([]*regexp.Regexp, error)

func IsIncludedInTime added in v0.1.6

func IsIncludedInTime(start, end, val int64) bool

func StringToFloat64 added in v0.1.6

func StringToFloat64(val string) (float64, error)

func StringToInt added in v0.1.6

func StringToInt(val string) (int, error)


type Filter added in v0.1.6

type Filter struct {
	// contains filtered or unexported fields

func NewFilter added in v0.1.6

func NewFilter(options *stats_options.Options) *Filter

func (*Filter) Do added in v0.1.6

func (f *Filter) Do(uri, status, timestr string) error

func (*Filter) Init added in v0.1.6

func (f *Filter) Init() error

func (*Filter) InitParseTime added in v0.1.6

func (f *Filter) InitParseTime(loc string) error

func (*Filter) ParseTime added in v0.1.6

func (f *Filter) ParseTime(val string) (time.Time, error)

func (*Filter) TimeStrToUnixNano added in v0.1.6

func (f *Filter) TimeStrToUnixNano(val string) (int64, error)

type HTTPStats

type HTTPStats struct {
	// contains filtered or unexported fields

func NewHTTPStats

func NewHTTPStats(useResTimePercentile, useRequestBodySizePercentile, useResponseBodySizePercentile bool, po *PrintOptions) *HTTPStats

func (*HTTPStats) CountUris added in v0.1.5

func (hs *HTTPStats) CountUris() int

func (*HTTPStats) DoFilter added in v0.1.6

func (hs *HTTPStats) DoFilter(uri, status, timestr string) bool

func (*HTTPStats) DumpStats added in v0.1.5

func (hs *HTTPStats) DumpStats(w io.Writer) error

func (*HTTPStats) InitFilter added in v0.1.6

func (hs *HTTPStats) InitFilter(options *stats_options.Options) error

func (*HTTPStats) LoadStats added in v0.1.5

func (hs *HTTPStats) LoadStats(r io.Reader) error

func (*HTTPStats) Print added in v0.1.2

func (hs *HTTPStats) Print()

func (*HTTPStats) Set

func (hs *HTTPStats) Set(uri, method string, status int, restime, resBodySize, reqBodySize float64)

func (*HTTPStats) SetOptions added in v0.1.6

func (hs *HTTPStats) SetOptions(options *stats_options.Options)

func (*HTTPStats) SetURICapturingGroups added in v0.1.6

func (hs *HTTPStats) SetURICapturingGroups(groups []string) error

func (*HTTPStats) Sort added in v0.1.6

func (hs *HTTPStats) Sort(sortType string, reverse bool)

func (*HTTPStats) SortAvgRequestBodySize added in v0.1.6

func (hs *HTTPStats) SortAvgRequestBodySize(reverse bool)

func (*HTTPStats) SortAvgResponseBodySize added in v0.1.6

func (hs *HTTPStats) SortAvgResponseBodySize(reverse bool)

func (*HTTPStats) SortAvgResponseTime added in v0.1.6

func (hs *HTTPStats) SortAvgResponseTime(reverse bool)

func (*HTTPStats) SortCount added in v0.1.2

func (hs *HTTPStats) SortCount(reverse bool)

func (*HTTPStats) SortMaxRequestBodySize added in v0.1.3

func (hs *HTTPStats) SortMaxRequestBodySize(reverse bool)


func (*HTTPStats) SortMaxResponseBodySize added in v0.1.3

func (hs *HTTPStats) SortMaxResponseBodySize(reverse bool)


func (*HTTPStats) SortMaxResponseTime added in v0.1.1

func (hs *HTTPStats) SortMaxResponseTime(reverse bool)

func (*HTTPStats) SortMethod added in v0.1.6

func (hs *HTTPStats) SortMethod(reverse bool)

func (*HTTPStats) SortMinRequestBodySize added in v0.1.3

func (hs *HTTPStats) SortMinRequestBodySize(reverse bool)

func (*HTTPStats) SortMinResponseBodySize added in v0.1.3

func (hs *HTTPStats) SortMinResponseBodySize(reverse bool)

func (*HTTPStats) SortMinResponseTime added in v0.1.1

func (hs *HTTPStats) SortMinResponseTime(reverse bool)

func (*HTTPStats) SortP1RequestBodySize added in v0.1.3

func (hs *HTTPStats) SortP1RequestBodySize(reverse bool)

func (*HTTPStats) SortP1ResponseBodySize added in v0.1.3

func (hs *HTTPStats) SortP1ResponseBodySize(reverse bool)

func (*HTTPStats) SortP1ResponseTime added in v0.1.1

func (hs *HTTPStats) SortP1ResponseTime(reverse bool)

func (*HTTPStats) SortP50RequestBodySize added in v0.1.3

func (hs *HTTPStats) SortP50RequestBodySize(reverse bool)

func (*HTTPStats) SortP50ResponseBodySize added in v0.1.3

func (hs *HTTPStats) SortP50ResponseBodySize(reverse bool)

func (*HTTPStats) SortP50ResponseTime added in v0.1.1

func (hs *HTTPStats) SortP50ResponseTime(reverse bool)

func (*HTTPStats) SortP90RequestBodySize added in v0.1.3

func (hs *HTTPStats) SortP90RequestBodySize(reverse bool)

func (*HTTPStats) SortP90ResponseBodySize added in v0.1.3

func (hs *HTTPStats) SortP90ResponseBodySize(reverse bool)

func (*HTTPStats) SortP90ResponseTime added in v0.1.1

func (hs *HTTPStats) SortP90ResponseTime(reverse bool)

func (*HTTPStats) SortP99RequestBodySize added in v0.1.3

func (hs *HTTPStats) SortP99RequestBodySize(reverse bool)

func (*HTTPStats) SortP99ResponseBodySize added in v0.1.3

func (hs *HTTPStats) SortP99ResponseBodySize(reverse bool)

func (*HTTPStats) SortP99ResponseTime added in v0.1.1

func (hs *HTTPStats) SortP99ResponseTime(reverse bool)

func (*HTTPStats) SortStddevRequestBodySize added in v0.1.3

func (hs *HTTPStats) SortStddevRequestBodySize(reverse bool)

func (*HTTPStats) SortStddevResponseBodySize added in v0.1.3

func (hs *HTTPStats) SortStddevResponseBodySize(reverse bool)

func (*HTTPStats) SortStddevResponseTime added in v0.1.1

func (hs *HTTPStats) SortStddevResponseTime(reverse bool)

func (*HTTPStats) SortSumRequestBodySize added in v0.1.3

func (hs *HTTPStats) SortSumRequestBodySize(reverse bool)

func (*HTTPStats) SortSumResponseBodySize added in v0.1.3

func (hs *HTTPStats) SortSumResponseBodySize(reverse bool)

func (*HTTPStats) SortSumResponseTime added in v0.1.1

func (hs *HTTPStats) SortSumResponseTime(reverse bool)

func (*HTTPStats) SortUri added in v0.1.6

func (hs *HTTPStats) SortUri(reverse bool)

func (*HTTPStats) SortWithOptions added in v0.1.6

func (hs *HTTPStats) SortWithOptions()

func (*HTTPStats) Stats added in v0.1.1

func (hs *HTTPStats) Stats() []*httpStat

type PrintOptions added in v0.1.6

type PrintOptions struct {
	// contains filtered or unexported fields

func NewPrintOptions added in v0.1.6

func NewPrintOptions() *PrintOptions

func (*PrintOptions) SetFormat added in v0.1.8

func (p *PrintOptions) SetFormat(format string)

func (*PrintOptions) SetHeaders added in v0.1.8

func (p *PrintOptions) SetHeaders(headers []string)

func (*PrintOptions) SetWriter added in v0.1.6

func (p *PrintOptions) SetWriter(w io.Writer)


Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL