How to measure the performance of an Linux C application?
Sunday, August 30th, 2009 at
21:53
I have written a C code, which uses fread, fwrite,. I want to measure the performance like No_Of_Blocks read and written by the application. disk usage, memory usage etc. Is there any tool to measure the performance of an application in linux?
Tagged with: c code • disk usage • fwrite • Linux • memory usage
Filed under: Linux Applications
Like this post? Subscribe to my RSS feed and get loads more!
lets see:
You can measure CPU performance using /proc/cpu. You can measure ethernet performance by using /sbin/ifconfig <eth_port>. You can use df to track data written to a filesystem/mountpoint. Take a before and after snapshot using the tool of choice and determine the metric you wish to measure.