MCPcopy
hub / github.com/expr-lang/expr / memoryUsage

Function memoryUsage

repl/repl.go:128–132  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

126}
127
128func memoryUsage() uint64 {
129 var m runtime.MemStats
130 runtime.ReadMemStats(&m)
131 return m.Alloc
132}
133
134func humanizeBytes(b uint64) string {
135 const unit = 1024

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…