Documentation ¶
Index ¶
- Constants
- Variables
- func CompileUriGroups(groups []string) ([]*regexp.Regexp, error)
- func IsIncludedInTime(start, end, val int64) bool
- func StringToFloat64(val string) (float64, error)
- func StringToInt(val string) (int, error)
- type Filter
- type HTTPStats
- func (hs *HTTPStats) CountUris() int
- func (hs *HTTPStats) DoFilter(uri, status, timestr string) bool
- func (hs *HTTPStats) DumpStats(w io.Writer) error
- func (hs *HTTPStats) InitFilter(options *stats_options.Options) error
- func (hs *HTTPStats) LoadStats(r io.Reader) error
- func (hs *HTTPStats) Print()
- func (hs *HTTPStats) Set(uri, method string, status int, restime, resBodySize, reqBodySize float64)
- func (hs *HTTPStats) SetOptions(options *stats_options.Options)
- func (hs *HTTPStats) SetURICapturingGroups(groups []string) error
- func (hs *HTTPStats) Sort(sortType string, reverse bool)
- func (hs *HTTPStats) SortAvgRequestBodySize(reverse bool)
- func (hs *HTTPStats) SortAvgResponseBodySize(reverse bool)
- func (hs *HTTPStats) SortAvgResponseTime(reverse bool)
- func (hs *HTTPStats) SortCount(reverse bool)
- func (hs *HTTPStats) SortMaxRequestBodySize(reverse bool)
- func (hs *HTTPStats) SortMaxResponseBodySize(reverse bool)
- func (hs *HTTPStats) SortMaxResponseTime(reverse bool)
- func (hs *HTTPStats) SortMethod(reverse bool)
- func (hs *HTTPStats) SortMinRequestBodySize(reverse bool)
- func (hs *HTTPStats) SortMinResponseBodySize(reverse bool)
- func (hs *HTTPStats) SortMinResponseTime(reverse bool)
- func (hs *HTTPStats) SortP1RequestBodySize(reverse bool)
- func (hs *HTTPStats) SortP1ResponseBodySize(reverse bool)
- func (hs *HTTPStats) SortP1ResponseTime(reverse bool)
- func (hs *HTTPStats) SortP50RequestBodySize(reverse bool)
- func (hs *HTTPStats) SortP50ResponseBodySize(reverse bool)
- func (hs *HTTPStats) SortP50ResponseTime(reverse bool)
- func (hs *HTTPStats) SortP90RequestBodySize(reverse bool)
- func (hs *HTTPStats) SortP90ResponseBodySize(reverse bool)
- func (hs *HTTPStats) SortP90ResponseTime(reverse bool)
- func (hs *HTTPStats) SortP99RequestBodySize(reverse bool)
- func (hs *HTTPStats) SortP99ResponseBodySize(reverse bool)
- func (hs *HTTPStats) SortP99ResponseTime(reverse bool)
- func (hs *HTTPStats) SortStddevRequestBodySize(reverse bool)
- func (hs *HTTPStats) SortStddevResponseBodySize(reverse bool)
- func (hs *HTTPStats) SortStddevResponseTime(reverse bool)
- func (hs *HTTPStats) SortSumRequestBodySize(reverse bool)
- func (hs *HTTPStats) SortSumResponseBodySize(reverse bool)
- func (hs *HTTPStats) SortSumResponseTime(reverse bool)
- func (hs *HTTPStats) SortUri(reverse bool)
- func (hs *HTTPStats) SortWithOptions()
- func (hs *HTTPStats) Stats() []*httpStat
- type PrintOptions
Constants ¶
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" )
Variables ¶
View Source
var (
SkipReadLineErr = errors.New("Skip read line")
)
Functions ¶
func CompileUriGroups ¶ added in v0.1.6
func IsIncludedInTime ¶ added in v0.1.6
func StringToFloat64 ¶ added in v0.1.6
func StringToInt ¶ added in v0.1.6
Types ¶
type Filter ¶ added in v0.1.6
type Filter struct {
// contains filtered or unexported fields
}
func (*Filter) InitParseTime ¶ added in v0.1.6
type HTTPStats ¶
type HTTPStats struct {
// contains filtered or unexported fields
}
func NewHTTPStats ¶
func NewHTTPStats(useResTimePercentile, useRequestBodySizePercentile, useResponseBodySizePercentile bool, po *PrintOptions) *HTTPStats
func (*HTTPStats) InitFilter ¶ added in v0.1.6
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 (*HTTPStats) SortAvgRequestBodySize ¶ added in v0.1.6
func (*HTTPStats) SortAvgResponseBodySize ¶ added in v0.1.6
func (*HTTPStats) SortAvgResponseTime ¶ added in v0.1.6
func (*HTTPStats) SortMaxRequestBodySize ¶ added in v0.1.3
request
func (*HTTPStats) SortMaxResponseBodySize ¶ added in v0.1.3
response
func (*HTTPStats) SortMaxResponseTime ¶ added in v0.1.1
func (*HTTPStats) SortMethod ¶ added in v0.1.6
func (*HTTPStats) SortMinRequestBodySize ¶ added in v0.1.3
func (*HTTPStats) SortMinResponseBodySize ¶ added in v0.1.3
func (*HTTPStats) SortMinResponseTime ¶ added in v0.1.1
func (*HTTPStats) SortP1RequestBodySize ¶ added in v0.1.3
func (*HTTPStats) SortP1ResponseBodySize ¶ added in v0.1.3
func (*HTTPStats) SortP1ResponseTime ¶ added in v0.1.1
func (*HTTPStats) SortP50RequestBodySize ¶ added in v0.1.3
func (*HTTPStats) SortP50ResponseBodySize ¶ added in v0.1.3
func (*HTTPStats) SortP50ResponseTime ¶ added in v0.1.1
func (*HTTPStats) SortP90RequestBodySize ¶ added in v0.1.3
func (*HTTPStats) SortP90ResponseBodySize ¶ added in v0.1.3
func (*HTTPStats) SortP90ResponseTime ¶ added in v0.1.1
func (*HTTPStats) SortP99RequestBodySize ¶ added in v0.1.3
func (*HTTPStats) SortP99ResponseBodySize ¶ added in v0.1.3
func (*HTTPStats) SortP99ResponseTime ¶ added in v0.1.1
func (*HTTPStats) SortStddevRequestBodySize ¶ added in v0.1.3
func (*HTTPStats) SortStddevResponseBodySize ¶ added in v0.1.3
func (*HTTPStats) SortStddevResponseTime ¶ added in v0.1.1
func (*HTTPStats) SortSumRequestBodySize ¶ added in v0.1.3
func (*HTTPStats) SortSumResponseBodySize ¶ added in v0.1.3
func (*HTTPStats) SortSumResponseTime ¶ added in v0.1.1
func (*HTTPStats) SortWithOptions ¶ added in v0.1.6
func (hs *HTTPStats) SortWithOptions()
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)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.