Class to wrap a single cpu line as contained in the '/proc/stat'.
This class is a wrapper around the counts found in a single cpu line in the /proc/stat entry. Typically, there will be one line representing ALL CPUs ('cpu') followed by a separate line for each individual CPU (or core) ('cpu0', 'cpu1', ...).
See: man 5 proc for details about: /proc/stat.
Typically, this class is not used by itself, but indirectly via the ProcStat class.
NOTE: Starting with the 2.6.24 series of kernels, a 9th value was added to the CPU lines in /proc/stat. From my quick google, it appears to be a Guest CPU accounting value.NOTE: Starting with the 2.6.33 series of kernels, a 10th value was added to the CPU lines in /proc/stat. From searching stat.c in the kernel source Ron identified it as Guest Nice CPU accounting value.
Located in /lib/ProcStat.php (line 51)
Takes two CpuStat objects (adding B to A) and return new results.
This method is used to create a new instance of a CpuStat object which is the result of adding one instance from another. This is useful if you have multiple delta CpuStat objects which you want to combine.
Takes two CpuStat objects (adding B to A) and return new results.
This method is used to create a new instance of a CpuStat object which is the result of adding one instance from another. This is useful if you have multiple delta CpuStat objects which you want to combine.
Takes two CpuStat objects (subtracting B from A) and return new results.
This method is used to create a new instance of a CpuStat object which is the result of subtractng one instance from another. This is useful to compute the delta between two different CpuStat readings.
Count of time accounted for by Guest CPU (starting in 2.6.24)?
Count of time accounted for by Guest Nice CPU (starting in 2.6.33)?
Count of time CPU spent servicing IRQ.
Count of time CPU spent in doing nothing.
Count of time CPU spent in I/O wait mode.
Access label ('cpu' for summary, or 'cpuN' for individual core).
Ratio of time the CPU was busy (in range of [0, 1.0]).
Ratio of time the CPU was NOT busy (in range of [0, 1.0]).
Count of time CPU spent servicing soft IRQ.
Count of time stolen from CPU (by virtualization?).
Count of time CPU spent in system mode.
Total of all of the counts related to the CPU being busy.
Total of ALL counts in the CPU usage array.
Total of getIdleCount() and getIoWaitCount().
Count of time CPU spent in user mode.
Count of time CPU spent in user nice mode.
Documentation generated on Sun, 11 Feb 2018 07:41:02 -0500 by phpDocumentor 1.4.4