github.com/core-coin/go-core/v2@v2.1.9/metrics/runtime_gccpufraction.go (about)

     1  //go:build go1.5
     2  // +build go1.5
     3  
     4  package metrics
     5  
     6  import "runtime"
     7  
     8  func gcCPUFraction(memStats *runtime.MemStats) float64 {
     9  	return memStats.GCCPUFraction
    10  }