File: runtime_gccpufraction.go

package info (click to toggle)
golang-github-rcrowley-go-metrics 0.0~git20180125.8732c61-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bookworm-proposed-updates, bullseye, bullseye-backports, forky, sid, trixie
  • size: 404 kB
  • sloc: sh: 4; makefile: 3
file content (9 lines) | stat: -rw-r--r-- 142 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
// +build go1.5

package metrics

import "runtime"

func gcCPUFraction(memStats *runtime.MemStats) float64 {
	return memStats.GCCPUFraction
}