Several tools are available to determine where the time is being spent in an application. Traditional approachs include
gprof, which gives time-based profiles, and
tcov, which gives frequencies of execution. Also, the Performance Analyzer ships as part of the developer bundle. On Solaris 10 and later, there is the option of collecting data using
The Sun Studio Performance Analyzer is probably the most useful tool available for detailed performance analysis. It is able to show at a source line level, or at a disassembly level, exactly what is happening to an application. It is a very powerful tool, and consequently it can appear a bit daunting to use. This ...