CPUUsage stores All CPU stats aggregated since container inceptiontype CPUUsage struct Total CPU time consumed Units nanoseconds Linux Units 100s of nanoseconds Windows TotalUsage uint64 jsontotal
这个结构体包含了CPU使用情况的各种统计信息:
- TotalUsage:总的CPU使用时间,单位为纳秒(Linux)或100纳秒(Windows)。
- PercpuUsage:每个核心的CPU使用时间,单位为纳秒(仅适用于Linux)。
- UsageInKernelmode:在内核模式下消耗的时间,单位为纳秒(Linux)或100纳秒(Windows)。
- UsageInUsermode:在用户模式下消耗的时间,单位为纳秒(Linux)或100纳秒(Windows)。
这些信息可以用于了解容器中的CPU使用情况。
原文地址: https://www.cveoy.top/t/topic/hRTo 著作权归作者所有。请勿转载和采集!