mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-26 13:40:05 +00:00
10 lines
142 B
Go
10 lines
142 B
Go
|
// +build go1.5
|
||
|
|
||
|
package metrics
|
||
|
|
||
|
import "runtime"
|
||
|
|
||
|
func gcCPUFraction(memStats *runtime.MemStats) float64 {
|
||
|
return memStats.GCCPUFraction
|
||
|
}
|