Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListenAndServe ¶
ListenAndServe starts server on provided address for toggling profiling and downloading results
func NewHandler ¶
NewHandler creates http handler for the whole profiling tools application If you want to use it aside of other handlers, don't miss http.StripPrefix wrapping like
mux.Handle("/pprof/", http.StripPrefix("/pprof", goprof.NewHandler()))
func SetLogFunction ¶
func SetLogFunction(fxn LogFxn)
SetLogFunction changes function used for logging. Logging is very basic and doesn't have many levels, since all the messages has quite the same level
Types ¶
type LogFxn ¶
type LogFxn func(format string, args ...interface{})
LogFxn is function which is used for writing log messages It doesn't have many levels, since all the messages has quite the same level
type ProfileListResponse ¶
type ProfileListResponse struct { OK bool `json:"ok"` Items []prof `json:"items"` }
type SimpleResponse ¶
Click to show internal directories.
Click to hide internal directories.