forked from TrueCloudLab/frostfs-node
22 lines
513 B
Go
22 lines
513 B
Go
|
package main
|
||
|
|
||
|
import (
|
||
|
httputil "git.frostfs.info/TrueCloudLab/frostfs-node/pkg/util/http"
|
||
|
)
|
||
|
|
||
|
const (
|
||
|
pprofEnabledKey = "pprof.enabled"
|
||
|
pprofAddressKey = "pprof.address"
|
||
|
pprofShutdownTimeoutKey = "pprof.shutdown_timeout"
|
||
|
)
|
||
|
|
||
|
func newPprofComponent() *httpComponent {
|
||
|
return &httpComponent{
|
||
|
name: "pprof",
|
||
|
enabledKey: pprofEnabledKey,
|
||
|
addressKey: pprofAddressKey,
|
||
|
shutdownTimeoutKey: pprofShutdownTimeoutKey,
|
||
|
handler: httputil.Handler(),
|
||
|
}
|
||
|
}
|