Documentation ¶
Index ¶
Constants ¶
View Source
const ( MaxOverTime_Type = 1 OverTime_Type = 2 )
Variables ¶
View Source
var Default_MaxOverTime time.Duration = 5 * time.Second
最大超长时间,一般可以认为是死锁或者死循环,或者极差的性能问题
View Source
var Default_MaxRecordNum int = 100 //最大记录条数
View Source
var Default_OverTime 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.