Performance Tracing

 

Using the GCC compiler and GPROF.

gcc -pg -lthread t.c -o trace_me
trace_me

gprof trace_me > trace
vi trace

 

Using the CC compiler and PROF.

cc -xpg -lthread t.c -o trace_me
trace_me


prof trace_me  > trace
vi trace