Documentation ¶
Index ¶
- func CpuProfile(funcer func())
- func ExpvarHandler(w http.ResponseWriter, r *http.Request)
- func Gc()
- func GcAndGetMemoryUsage() uint64
- func GcHandler(w http.ResponseWriter, r *http.Request)
- func GetMemeoryUsage() uint64
- func Index(w http.ResponseWriter, r *http.Request)
- func RegisterProfile(prefixPath string)
- func StartProfileOnAddr(prefixPath string, profileAddr string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CpuProfile ¶
func CpuProfile(funcer func())
func ExpvarHandler ¶
func ExpvarHandler(w http.ResponseWriter, r *http.Request)
Replicated from expvar.go as not public.
func GcAndGetMemoryUsage ¶
func GcAndGetMemoryUsage() uint64
func GetMemeoryUsage ¶
func GetMemeoryUsage() uint64
func RegisterProfile ¶
func RegisterProfile(prefixPath string)
可以使用PrefixPath提高安全性 如果你不关心安全性 可以使用 / 以便使用golang的默认值. (kmgHttp.ClearHttpDefaultServer() 避免多次注册)
func StartProfileOnAddr ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.