Hello.
This patch (diff file attached) I'm proposing adds a new function
proc_stat::core(), which allows monitoring stats for each individual
processor/core in the multiprocessor/multicore system (/proc/stat lines
"cpu0"..."cpun"), as opposed to total aggregated stats (/proc/stat "cpu"
line) with proc_stat::cpu().
Function takes 3 arguments:
proc_stat::core(core, key, delay)
Where:
core - core number/index;
key - which stat to get;
delay - delta time period in milliseconds.
Key and delay are the same arguments just like in proc_stat::cpu().
Output format is also the same as in proc_stat::cpu().
Regards,
Alexei Gordeev
|