[skip ci] Add desc comments for GetUsedMemoryCount (#9129)

Signed-off-by: dragondriver <jiquan.long@zilliz.com>
This commit is contained in:
dragondriver 2021-10-03 10:36:08 +08:00 committed by GitHub
parent d13ae5f336
commit 9b095843e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -58,6 +58,7 @@ func GetMemoryCount() uint64 {
return stats.Total
}
// GetUsedMemoryCount returns the memory usage in bytes.
func GetUsedMemoryCount() uint64 {
stats, err := mem.VirtualMemory()
if err != nil {