Previous: , Up: Advanced Compiler Use and Efficiency Hints   [Contents][Index]

5.14 Profiling

The first step in improving a program’s performance is to profile the activity of the program to find where it spends its time. The best way to do this is to use the profiling utility found in the profile package. This package provides a macro profile that encapsulates functions with statistics gathering code.