优化计数器相关测试用例

This commit is contained in:
GoEdgeLab
2023-12-24 16:08:57 +08:00
parent f14d430754
commit 81fdc337c9
2 changed files with 9 additions and 8 deletions

View File

@@ -91,7 +91,7 @@ func TestCounterMemory(t *testing.T) {
var stat1 = &runtime.MemStats{}
runtime.ReadMemStats(stat1)
t.Log((stat1.TotalAlloc-stat.TotalAlloc)/(1<<20), "MB")
t.Log((stat1.HeapInuse-stat.HeapInuse)/(1<<20), "MB")
t.Log(counter.TotalItems())