MCPcopy Create free account
hub / github.com/IceFireDB/IceFireDB / debug

Function debug

IceFireDB-PubSub/cmd/pubsub/main.go:127–135  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

125}
126
127func debug() {
128 // Open pprof
129 if config.Get().PprofDebug.Enable {
130 utils.GoWithRecover(func() {
131 addr := strconv.Itoa(int(config.Get().PprofDebug.Port))
132 _ = http.ListenAndServe(":"+addr, nil)
133 }, nil)
134 }
135}

Callers 1

initConfigFunction · 0.70

Calls 2

GetFunction · 0.92
GoWithRecoverFunction · 0.92

Tested by

no test coverage detected