Gitiles
Code Review
Sign In
gerrit.opencord.org
/
voltha-openonu-adapter-go
/
da3a52f38e085059f87c3aa6725184c1580e0d9c
/
.
/
vendor
/
github.com
/
rcrowley
/
go-metrics
/
runtime_gccpufraction.go
blob: ca12c05bac740b87c9963d6b4487b78959c4e6a0 [
file
] [
log
] [
blame
]
Holger Hildebrandt
fa07499
2020-03-27 15:42:06 +0000
[
diff
] [
blame
]
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
}