diff options
Diffstat (limited to 'vendor/github.com/rcrowley/go-metrics/runtime_gccpufraction.go')
-rw-r--r-- | vendor/github.com/rcrowley/go-metrics/runtime_gccpufraction.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/vendor/github.com/rcrowley/go-metrics/runtime_gccpufraction.go b/vendor/github.com/rcrowley/go-metrics/runtime_gccpufraction.go new file mode 100644 index 000000000..ca12c05ba --- /dev/null +++ b/vendor/github.com/rcrowley/go-metrics/runtime_gccpufraction.go @@ -0,0 +1,9 @@ +// +build go1.5 + +package metrics + +import "runtime" + +func gcCPUFraction(memStats *runtime.MemStats) float64 { + return memStats.GCCPUFraction +} |