status-go/vendor/github.com/ethereum/go-ethereum/metrics/runtime_gccpufraction.go

11 lines
159 B
Go
Raw Permalink Normal View History

2022-10-25 14:25:08 +00:00
//go:build go1.5
// +build go1.5
package metrics
import "runtime"
func gcCPUFraction(memStats *runtime.MemStats) float64 {
return memStats.GCCPUFraction
}