Gitiles
Code Review
Sign In
gerrit.opencord.org
/
voltha-openolt-adapter
/
bd8f50b29924de27d90c0b2a73fdb4439f465b00
/
.
/
vendor
/
github.com
/
rcrowley
/
go-metrics
/
runtime_gccpufraction.go
blob: ca12c05bac740b87c9963d6b4487b78959c4e6a0 [
file
] [
log
] [
blame
]
William Kurkian
ea86948
2019-04-09 15:16:11 -0400
[
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
}