mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-11-27 18:40:28 +08:00
增加若干内存缓存相关基准测试
This commit is contained in:
@@ -55,3 +55,9 @@ func StartMemoryStats(t *testing.T, callbacks ...func()) {
|
||||
}
|
||||
}()
|
||||
}
|
||||
|
||||
func ReadMemoryStat() *runtime.MemStats {
|
||||
var stat = &runtime.MemStats{}
|
||||
runtime.ReadMemStats(stat)
|
||||
return stat
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user