Documentation ¶
Index ¶
- type DefaultProfiling
- func (prof *DefaultProfiling) AddCheckpoint(name string) error
- func (prof *DefaultProfiling) AddCheckpointWithTime(name string, time time.Time) error
- func (prof *DefaultProfiling) Clear()
- func (prof *DefaultProfiling) FinishExecution(save bool) error
- func (prof *DefaultProfiling) FinishExecutionWithTime(save bool, finishTime time.Time) error
- func (prof *DefaultProfiling) GetCount() int
- func (prof *DefaultProfiling) GetQPSStatistics() (*QPSStatistics, error)
- func (prof *DefaultProfiling) GetTimeStatistics() *TimeStatistics
- func (prof *DefaultProfiling) StartExecution()
- func (prof *DefaultProfiling) StartExecutionWithTime(time time.Time)
- type EmptyProfiling
- func (ep *EmptyProfiling) AddCheckpoint(name string) error
- func (ep *EmptyProfiling) AddCheckpointWithTime(name string, time time.Time) error
- func (ep *EmptyProfiling) FinishExecution(save bool) error
- func (ep *EmptyProfiling) FinishExecutionWithTime(save bool, finishTime time.Time) error
- func (ep *EmptyProfiling) GetCount() int
- func (ep *EmptyProfiling) GetQPSStatistics() (*QPSStatistics, error)
- func (ep *EmptyProfiling) GetTimeStatistics() *TimeStatistics
- func (ep *EmptyProfiling) StartExecution()
- func (ep *EmptyProfiling) StartExecutionWithTime(time time.Time)
- type Profiling
- type ProfilingCache
- type QPSStatistics
- type StageQPS
- type StageTime
- type TimeStatistics
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefaultProfiling ¶
func (*DefaultProfiling) AddCheckpoint ¶
func (prof *DefaultProfiling) AddCheckpoint(name string) error
func (*DefaultProfiling) AddCheckpointWithTime ¶
func (prof *DefaultProfiling) AddCheckpointWithTime(name string, time time.Time) error
func (*DefaultProfiling) Clear ¶
func (prof *DefaultProfiling) Clear()
func (*DefaultProfiling) FinishExecution ¶
func (prof *DefaultProfiling) FinishExecution(save bool) error
func (*DefaultProfiling) FinishExecutionWithTime ¶
func (prof *DefaultProfiling) FinishExecutionWithTime(save bool, finishTime time.Time) error
func (*DefaultProfiling) GetCount ¶
func (prof *DefaultProfiling) GetCount() int
func (*DefaultProfiling) GetQPSStatistics ¶
func (prof *DefaultProfiling) GetQPSStatistics() (*QPSStatistics, error)
func (*DefaultProfiling) GetTimeStatistics ¶
func (prof *DefaultProfiling) GetTimeStatistics() *TimeStatistics
func (*DefaultProfiling) StartExecution ¶
func (prof *DefaultProfiling) StartExecution()
func (*DefaultProfiling) StartExecutionWithTime ¶
func (prof *DefaultProfiling) StartExecutionWithTime(time time.Time)
type EmptyProfiling ¶
type EmptyProfiling struct {
Profiling
}
func (*EmptyProfiling) AddCheckpoint ¶
func (ep *EmptyProfiling) AddCheckpoint(name string) error
func (*EmptyProfiling) AddCheckpointWithTime ¶
func (ep *EmptyProfiling) AddCheckpointWithTime(name string, time time.Time) error
func (*EmptyProfiling) FinishExecution ¶
func (ep *EmptyProfiling) FinishExecution(save bool) error
func (*EmptyProfiling) FinishExecutionWithTime ¶
func (ep *EmptyProfiling) FinishExecutionWithTime(save bool, finishTime time.Time) error
func (*EmptyProfiling) GetCount ¶
func (ep *EmptyProfiling) GetCount() int
func (*EmptyProfiling) GetQPSStatistics ¶
func (ep *EmptyProfiling) GetQPSStatistics() (*QPSStatistics, error)
func (*EmptyProfiling) GetTimeStatistics ¶
func (ep *EmptyProfiling) GetTimeStatistics() *TimeStatistics
func (*EmptyProfiling) StartExecution ¶
func (ep *EmptyProfiling) StartExecution()
func (*EmptyProfiling) StartExecutionWithTime ¶
func (ep *EmptyProfiling) StartExecutionWithTime(time time.Time)
type Profiling ¶
type Profiling interface { StartExecution() StartExecutionWithTime(time time.Time) FinishExecution(save bool) error FinishExecutionWithTime(save bool, finishTime time.Time) error AddCheckpoint(name string) error AddCheckpointWithTime(name string, time time.Time) error GetCount() int Clear() GetTimeStatistics() *TimeStatistics GetQPSStatistics() (*QPSStatistics, error) }
func GetProfilingFromCache ¶
func InitProfilingInCache ¶
func NewEmptyProfiling ¶
func NewEmptyProfiling() Profiling
func NewProfiling ¶
func NewProfiling() Profiling
func NewProfilingWithTime ¶
type ProfilingCache ¶
type QPSStatistics ¶
Click to show internal directories.
Click to hide internal directories.