Monday, May 24, 2010

Which library or sys call can I use to meassure the memory usage and cpu time consumption of a programm in c??

Im using a linux system (kubuntu) and need to compare two equivalent programms in terms of memory usage and cpu consumption.


I need to do it using c (gcc compiler)... not a utility or something like that

Which library or sys call can I use to meassure the memory usage and cpu time consumption of a programm in c??
Perhaps something in /proc could be helpful? or iostat?


No comments:

Post a Comment