Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/containerd/nerdctl
/ CPUPerc
Method
CPUPerc
pkg/statsutil/stats.go:178–183 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
176
}
177
178
func
(s *StatsEntry) CPUPerc() string {
179
if
s.IsInvalid {
180
return
"--"
181
}
182
return
fmt.Sprintf(
"%.2f%%"
, s.CPUPercentage)
183
}
184
185
func
(s *StatsEntry) MemUsage() string {
186
if
s.IsInvalid {
Callers
1
RenderEntry
Function · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected