MCPcopy Create free account
hub / github.com/devfeel/dotweb / SetPProfConfig

Method SetPProfConfig

dotweb.go:299–303  ·  view source on GitHub ↗

SetPProfConfig set pprofserver config, default is disable and don't use same port with StartServer

(enabledPProf bool, httpport int)

Source from the content-addressed store, hash-verified

297// SetPProfConfig set pprofserver config, default is disable
298// and don't use same port with StartServer
299func (app *DotWeb) SetPProfConfig(enabledPProf bool, httpport int) {
300 app.Config.App.EnabledPProf = enabledPProf
301 app.Config.App.PProfPort = httpport
302 app.Logger().Debug("DotWeb SetPProfConfig ["+strconv.FormatBool(enabledPProf)+", "+strconv.Itoa(httpport)+"]", LogTarget_HttpServer)
303}
304
305// SetLogger set user logger, the logger must implement logger.AppLog interface
306func (app *DotWeb) SetLogger(log logger.AppLog) {

Callers 1

mainFunction · 0.80

Calls 2

LoggerMethod · 0.95
DebugMethod · 0.65

Tested by

no test coverage detected