Analyzing Program Performance With Sun WorkShop

Traditional Profiling Tools

Sun WorkShop includes three command-line utilities for reporting data about your program:

Use prof and gprof to gather and display information for threaded (including auto-parallelized) programs. These tools provide a variety of levels of feedback about your program for you to analyze. They work in combination with other utilities and compiler options to collect and use performance data. prof generates a program profile in a flat file. gprof generates a call graph profile. tcov generates statement-level information in a copy of the source file, annotated to show which lines are used and how often.

These tools are described in Chapter 4, Traditional Profiling Tools.