mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-25 12:57:18 +00:00
663490ee1f
* add new changes * fix typos
18 lines
340 B
Go
18 lines
340 B
Go
package debug
|
|
|
|
import (
|
|
"runtime"
|
|
|
|
"github.com/prometheus/client_golang/prometheus"
|
|
"github.com/prometheus/client_golang/prometheus/promauto"
|
|
)
|
|
|
|
var (
|
|
_ = promauto.NewGaugeFunc(prometheus.GaugeOpts{
|
|
Name: "go_maxprocs",
|
|
Help: "The result of runtime.GOMAXPROCS(0)",
|
|
}, func() float64 {
|
|
return float64(runtime.GOMAXPROCS(0))
|
|
})
|
|
)
|