Hi, Can anybody tell me about 'profiling' in unix by giving a small example. Thank you!
+3
A:
You'll need to give us some more context if you want a useful answer. Broadly speaking, profiling a program is to instrument the executable with some extra statements that record details of execution which you can later analyse to identify parts that are slow, consume too much memory, consume too much CPU etc. Here's a quickie along with examples on how to use gprof
which is the GNU profiler for C. http://www.cs.utah.edu/dept/old/texinfo/as/gprof.html#SEC2
Noufal Ibrahim
2010-05-01 10:23:16