9 User: 1076.952880859375 System: 534.6328125 IDLE: 29336.767578125
17 a,b,c = cps.getCpuTimes()
19 print(
"User: {0} System: {1} IDLE: {2}".format(a,b,c))
26 Current CPU Usage: 0.0
27 Current CPU Usage: 0.0
28 Current CPU Usage: 0.0
29 Current CPU Usage: 0.8
30 Current CPU Usage: 0.0
31 Current CPU Usage: 0.1
32 Current CPU Usage: 1.5
33 Current CPU Usage: 0.0
34 Current CPU Usage: 0.0
35 Current CPU Usage: 0.8
40 print(
"Current CPU Usage: {0}".format(cps.getCpuPercent()))
47 Cpu Percent Per Cpu: [7.9, 4.8]
48 Cpu Percent Per Cpu: [29.2, 29.2]
49 Cpu Percent Per Cpu: [1.6, 0.0]
50 Cpu Percent Per Cpu: [0.0, 0.0]
51 Cpu Percent Per Cpu: [0.0, 0.0]
56 print(
"Cpu Percent Per Cpu: {0}".format(cps.cpuPercentPerCpu()))
63 User: 0.0 System: 0.0 IDLE: 100.0
65 a = user cpu times percent
66 b = system cpu times percent
67 c = idle cpu times percent
71 a, b, c = cps.cpuTimesPercent()
72 print(
"CPU Times Percent: \nUser: {0} System: {1} IDLE: {2}".format(a,b,c))
79 Cpu Count without Logical: 2
86 a,b = cps.getCpuCount()
87 print(
"Cpu Count: {0}\nCpu Count without Logical: {1}".format(a,b))
97 caffinityTest = cps.getCpuAffinity()
98 print(
"CPU Affinity: {0}".format(caffinityTest))