Documentation
Sys_GetCPUInfo
array Sys_GetCPUInfo ()
Returns
Array with information about CPU utilization
Description
Provides for each CPU the current load (CPU_ *) and the average load of the last 60 seconds for all CPU cores (CPU_AVG). The average load is calculated by taking a measurement of each second of the value of the current load and is stored afterwards.The average load is calculated by adding the last 60 measured values and then divided by 60.
The average load is not the average load of the current load, but the average load of the last 60 seconds.
Example
print_r(Sys_GetCPUInfo());
/*
Array
(
[CPU_0] => 3
[CPU_AVG] => 3
)
*/