- Compile with -pg option
- Link with -pg and -g options
- Run the program as usual. The binary gmon.out file will be generated.
- To analyse the results run gprof
$ gprof program-name [ data-file ] [ > output-file ]
TODO:
Check kprof and xprofiler!
$ gprof program-name [ data-file ] [ > output-file ]
1 comment:
Interesting to know.
Post a Comment