MCPcopy Create free account
hub / github.com/containerd/nerdctl / MemUsage

Method MemUsage

pkg/statsutil/stats.go:185–190  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

183}
184
185func (s *StatsEntry) MemUsage() string {
186 if s.IsInvalid {
187 return "-- / --"
188 }
189 return fmt.Sprintf("%s / %s", units.BytesSize(s.Memory), units.BytesSize(s.MemoryLimit))
190}
191
192func (s *StatsEntry) MemPerc() string {
193 if s.IsInvalid {

Callers 1

RenderEntryFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected