MCPcopy Create free account
hub / github.com/imgproxy/imgproxy / LogStats

Function LogStats

memory/stats.go:10–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8)
9
10func LogStats() {
11 var m runtime.MemStats
12 runtime.ReadMemStats(&m)
13 slog.Debug(
14 "GO MEMORY USAGE",
15 "sys", m.Sys/1024/1024,
16 "heap_idle", m.HeapIdle/1024/1024,
17 "heap_inuse", m.HeapInuse/1024/1024,
18 )
19
20 slog.Debug(
21 "VIPS MEMORY USAGE",
22 "cur", int(vipsstats.Memory())/1024/1024,
23 "max", int(vipsstats.MemoryHighwater())/1024/1024,
24 "allocs", int(vipsstats.Allocs()),
25 )
26}

Callers 1

startMemoryTickerMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected