Documentation
¶
Overview ¶
Package prof is wrap the official `net/http/pprof` route and add the profile io wait time route.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetDurationSecond ¶
func SetDurationSecond(d uint32)
SetDurationSecond set sampling profile duration
Types ¶
type Profile ¶
type Profile struct {
// contains filtered or unexported fields
}
func (*Profile) StartOrStop ¶
func (p *Profile) StartOrStop()
StartOrStop start and stop sampling profile, the first call to start sampling data, the default maximum is 60 seconds, in less than 60s, if the second execution will actively stop sampling profile
Click to show internal directories.
Click to hide internal directories.