kmgProfile

package
v0.0.0-...-05317bf Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2015 License: MIT Imports: 16 Imported by: 0

Documentation

Index

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 Gc

func Gc()

func GcAndGetMemoryUsage

func GcAndGetMemoryUsage() uint64

func GcHandler

func GcHandler(w http.ResponseWriter, r *http.Request)

func GetMemeoryUsage

func GetMemeoryUsage() uint64

func Index

func Index(w http.ResponseWriter, r *http.Request)

func RegisterProfile

func RegisterProfile(prefixPath string)

可以使用PrefixPath提高安全性 如果你不关心安全性 可以使用 / 以便使用golang的默认值. (kmgHttp.ClearHttpDefaultServer() 避免多次注册)

func StartProfileOnAddr

func StartProfileOnAddr(prefixPath string, profileAddr string)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL