MCPcopy Create free account
hub / github.com/couchbase/cbft / UpdateCurMemoryUsed

Function UpdateCurMemoryUsed

ns_server.go:1154–1158  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

setCurMemoryUsedWithFunction · 0.85

Tested by

no test coverage detected