I am using a custom fedora distro, which does not support ps aux, hence I am finding it difficult to log the CPU usage of a particular process, is there an alternate way to measure the CPU usage apart from top or ps aux? calculating CPU usage from /proc//status would be great.
Asked
Active
Viewed 370 times
1 Answers
0
One way to achieve it is to make the parent of the process call getrusage()
. In fact, your process might call it itself periodically and log the values.

Alexander L. Belikoff
- 5,698
- 1
- 25
- 31