github.com/dominant-strategies/go-quai@v0.28.2/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  }