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

Function GetMemoryUsage

internal/pets/memory.go:5–11  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3import "github.com/GoMudEngine/GoMud/internal/util"
4
5func GetMemoryUsage() map[string]util.MemoryResult {
6 ret := map[string]util.MemoryResult{}
7
8 ret["petTypes"] = util.MemoryResult{Memory: util.MemoryUsage(petTypes), Count: len(petTypes)}
9
10 return ret
11}
12
13func init() {
14 util.AddMemoryReporter(`Pets`, GetMemoryUsage)

Callers

nothing calls this directly

Calls 1

MemoryUsageFunction · 0.92

Tested by

no test coverage detected