From: Alexei <kp1...@gm...> - 2016-01-17 16:28:05
|
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 |