MCPcopy Create free account
hub / github.com/GoMudEngine/GoMud / MemoryUsage

Function MemoryUsage

internal/util/memory.go:196–198  ·  view source on GitHub ↗

MemoryUsage is an alias for ApproximateMemoryUsage retained for backwards compatibility with existing callers.

(i interface{})

Source from the content-addressed store, hash-verified

194// MemoryUsage is an alias for ApproximateMemoryUsage retained for backwards
195// compatibility with existing callers.
196func MemoryUsage(i interface{}) uint64 {
197 return ApproximateMemoryUsage(i)
198}
199
200// FormatBytes formats a byte count as a human-readable string.
201// Returns "0 B" for zero, otherwise scales to KB/MB/GB/TB/PB/EB.

Callers 15

GetMemoryUsageFunction · 0.92
GetMemoryUsageFunction · 0.92
GetMemoryUsageFunction · 0.92
GetMemoryUsageFunction · 0.92
GetMemoryUsageFunction · 0.92
GetMemoryUsageFunction · 0.92
GetMemoryUsageFunction · 0.92
GetMemoryUsageFunction · 0.92
GetMemoryUsageFunction · 0.92
GetMemoryUsageFunction · 0.92
GetMemoryUsageFunction · 0.92
GetMemoryUsageFunction · 0.92

Calls 1

ApproximateMemoryUsageFunction · 0.85

Tested by

no test coverage detected