frostfs-node/cmd/neofs-node/pprof.go
Alex Vanin 2ee24998ba [#68] Add go pprof to neofs-storage
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
2020-10-02 19:47:08 +03:00

15 lines
245 B
Go

package main
import (
"github.com/nspcc-dev/neofs-node/pkg/util/profiler"
)
func initProfiler(c *cfg) {
c.profiler = profiler.NewProfiler(c.log, c.viper)
}
func serveProfiler(c *cfg) {
if c.profiler != nil {
c.profiler.Start(c.ctx)
}
}