fix: adjust gc stats struct
This commit is contained in:
@@ -10,16 +10,18 @@ import (
|
|||||||
|
|
||||||
func ReadMemStats(m *runtime.MemStats) {
|
func ReadMemStats(m *runtime.MemStats) {
|
||||||
stats := tinygogc.ReadGCStats()
|
stats := tinygogc.ReadGCStats()
|
||||||
m.StackInuse = stats.StackInuse
|
m.Alloc = stats.Alloc
|
||||||
m.StackSys = stats.StackSys
|
|
||||||
m.HeapSys = stats.HeapSys
|
|
||||||
m.GCSys = stats.GCSys
|
|
||||||
m.TotalAlloc = stats.TotalAlloc
|
m.TotalAlloc = stats.TotalAlloc
|
||||||
|
m.Sys = stats.Sys
|
||||||
m.Mallocs = stats.Mallocs
|
m.Mallocs = stats.Mallocs
|
||||||
m.Frees = stats.Frees
|
m.Frees = stats.Frees
|
||||||
m.Sys = stats.Sys
|
|
||||||
m.HeapAlloc = stats.HeapAlloc
|
m.HeapAlloc = stats.HeapAlloc
|
||||||
m.Alloc = stats.Alloc
|
m.HeapSys = stats.HeapSys
|
||||||
|
m.HeapIdle = stats.HeapIdle
|
||||||
|
m.HeapInuse = stats.HeapInuse
|
||||||
|
m.StackInuse = stats.StackInuse
|
||||||
|
m.StackSys = stats.StackSys
|
||||||
|
m.GCSys = stats.GCSys
|
||||||
}
|
}
|
||||||
|
|
||||||
func GC() {
|
func GC() {
|
||||||
|
|||||||
Reference in New Issue
Block a user