Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReplaceWithZeroValue ¶
Types ¶
type SlowQueryInfo ¶
type SlowQueryScanner ¶
type SlowQueryScanner struct {
// contains filtered or unexported fields
}
func NewSlowQueryScanner ¶
func NewSlowQueryScanner(r io.Reader) *SlowQueryScanner
func (*SlowQueryScanner) Err ¶
func (s *SlowQueryScanner) Err() error
func (*SlowQueryScanner) Next ¶
func (s *SlowQueryScanner) Next() bool
func (*SlowQueryScanner) SlowQueryInfo ¶
func (s *SlowQueryScanner) SlowQueryInfo() *SlowQueryInfo
type SlowQuerySummary ¶
type SlowQuerySummary struct { RowSample string TotalTime float64 TotalLockTime float64 TotalQueryCount int TotalRowsSent int TotalRowsExamined int QueryTimes []QueryTime // contains filtered or unexported fields }
func (*SlowQuerySummary) ComputeHistogram ¶
func (s *SlowQuerySummary) ComputeHistogram()
func (*SlowQuerySummary) ComputeStats ¶
func (s *SlowQuerySummary) ComputeStats()
func (*SlowQuerySummary) String ¶
func (s *SlowQuerySummary) String() string
type Summarizer ¶
type Summarizer struct {
// contains filtered or unexported fields
}
func NewSummarizer ¶
func NewSummarizer() *Summarizer
func (*Summarizer) Collect ¶
func (s *Summarizer) Collect(i *SlowQueryInfo)
func (*Summarizer) Map ¶
func (s *Summarizer) Map() map[string]*SlowQuerySummary
func (*Summarizer) Summarize ¶
func (s *Summarizer) Summarize() []*SlowQuerySummary
func (*Summarizer) TotalQueryTime ¶
func (s *Summarizer) TotalQueryTime() float64
Source Files ¶
Click to show internal directories.
Click to hide internal directories.