forked from mirror/client_golang
use counter for heap released bytes
This commit is contained in:
parent
9a6b9d3ddf
commit
1eb8d032a8
|
@ -116,7 +116,7 @@ func NewGoCollector() *goCollector {
|
||||||
nil, nil,
|
nil, nil,
|
||||||
),
|
),
|
||||||
eval: func(ms *runtime.MemStats) float64 { return float64(ms.HeapReleased) },
|
eval: func(ms *runtime.MemStats) float64 { return float64(ms.HeapReleased) },
|
||||||
valType: GaugeValue,
|
valType: CounterValue,
|
||||||
}, {
|
}, {
|
||||||
desc: NewDesc(
|
desc: NewDesc(
|
||||||
memstatNamespace("heap_objects"),
|
memstatNamespace("heap_objects"),
|
||||||
|
|
Loading…
Reference in New Issue