mauro-belgiovine / cpu-get-stat Goto Github PK
View Code? Open in Web Editor NEWFunctions to get stat information about cpu and/or processes reading from /proc/stat and /proc/<pid>/stat files. Based on a concept explained in answer from: http://stackoverflow.com/questions/1420426/calculating-cpu-usage-of-a-process-in-linux/1424556#1424556. See test.c for explanations.
License: GNU General Public License v2.0