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
==========
P.S. Sorry for the double post. I'm not sure if the previous email is
readable, but it shows up as empty in sourceforge archive. Thunderbird
messed something up with HTML formatting it seems, and this one should
be plaintext and readable now.
|