github.com/neatlab/neatio@v1.7.3-0.20220425043230-d903e92fcc75/utilities/metrics/runtime_gccpufraction.go (about)

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