()
| 1152 | } |
| 1153 | |
| 1154 | func UpdateCurMemoryUsed() uint64 { |
| 1155 | var memStats *runtime.MemStats |
| 1156 | runtime.ReadMemStats(memStats) |
| 1157 | return setCurMemoryUsedWith(memStats) |
| 1158 | } |
| 1159 | |
| 1160 | func setCurMemoryUsedWith(memStats *runtime.MemStats) uint64 { |
| 1161 | // (Sys - HeapIdle) best represents the amount of memory that the go process |
nothing calls this directly
no test coverage detected