Documentation ¶
Index ¶
Constants ¶
View Source
const ( MaxOvertimeType = 1 OvertimeType = 2 )
Variables ¶
View Source
var DefaultMaxOvertime time.Duration = 5 * time.Second
最大超长时间,一般可以认为是死锁或者死循环,或者极差的性能问题
View Source
var DefaultMaxRecordNum int = 100 //最大记录条数
View Source
var DefaultOvertime time.Duration = 10 * time.Millisecond
超过该时间将会监控报告
Functions ¶
func DefaultReportFunction ¶
func SetReportFunction ¶
func SetReportFunction(reportFun ReportFunType)
Types ¶
type Profiler ¶
type Profiler struct {
// contains filtered or unexported fields
}
func RegProfiler ¶
func (*Profiler) SetMaxOverTime ¶
func (*Profiler) SetMaxRecordNum ¶
func (*Profiler) SetOverTime ¶
type RecordType ¶
type RecordType int
Click to show internal directories.
Click to hide internal directories.