mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-22 19:40:37 +00:00
495e92ce9f
* add maxprocs * add prereqs * add tos and version pkg * add in all runtime packages Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
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))
|
|
})
|
|
)
|