MCPcopy Create free account
hub / github.com/Tencent/phxqueue / CpuRate

Class CpuRate

phxqueue/comm/utils/load_util.cpp:54–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52};
53
54class CpuRate {
55 public:
56 unsigned long long userate{0};
57 unsigned long long sysrate{0};
58 unsigned long long iowaitrate{0};
59 unsigned long long hardirqrate{0};
60 unsigned long long softirqrate{0};
61};
62
63void GetCpuInfo(CpuInfo &cpu_info) {
64 CpuInfo new_cpu_info;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected