System information

Hi,
I’m willing to get information on the system during the execution of my
program on an embedded platform : RAM usage, CPU usage …
Does anyone know how I can obtain such information directly inside my code
?

Jeff

Hello,
I guess that you can get this information from /proc filesystem base on
your process # and thread #.
Other possibilities which I was also impleneted in one of my code for
determining CPU usage is using RDTSC instruction(you can find on web a
lot infos)
Cheers
Otto

Jeff wrote:

Hi,
I’m willing to get information on the system during the execution of my
program on an embedded platform : RAM usage, CPU usage …
Does anyone know how I can obtain such information directly inside my code
?

Jeff