Product SiteDocumentation Site

Chapter 6. Profiling

6.1. Profiling In Eclipse
6.2. Valgrind
6.2.1. Valgrind Tools
6.2.2. Using Valgrind
6.2.3. Valgrind Plug-in for Eclipse
6.2.4. Valgrind Documentation
6.3. OProfile
6.3.1. OProfile Tools
6.3.2. Using OProfile
6.3.3. OProfile Plug-in For Eclipse
6.3.4. OProfile Documentation
6.4. SystemTap
6.4.1. SystemTap Compile Server
6.4.2. SystemTap Support for Unprivileged Users
6.4.3. SSL and Certificate Management
6.4.4. SystemTap Documentation
6.5. Eclipse-Callgraph
6.5.1. Launching a Profile With Eclipse-Callgraph
6.5.2. The Callgraph View
6.6. Performance Counters for Linux (PCL) Tools and perf
6.6.1. Perf Tool Commands
6.6.2. Using Perf
6.7. ftrace
6.7.1. Using ftrace
6.7.2. ftrace Documentation
Developers profile programs to focus attention on the areas of the program that have the largest impact on performance. The types of data collected include what section of the program consumes the most processor time, and where memory is allocated. Profiling collects data from the actual program execution. Thus, the quality of the data collect is influenced by the actual tasks being performed by the program. The tasks performed during profiling should be represenative of actual use; this ensures that problems arising from realistic use of the program are addressed during development.
Red Hat Enterprise Linux 6 includes a number of different tools (Valgrind, OProfile, perf, and SystemTap) to collect profiling data. Each tool is suitable for performing specific types of profile runs, as described in the following sections.

6.1. Profiling In Eclipse

To launch a profile run, navigate to Run > Profile. This will open the Profile As dialogue, from which you can select a tool for a profile run.
Profile As
Figure 6.1. Profile As

To configure each tool for a profile run, navigate to Run > Profile Configuration. This will open the Profile Configuration menu.
Profile Configuration
Figure 6.2. Profile Configuration

For more information on configuring and performing a profile run with each tool in Eclipse, refer to Section 6.2.3, “Valgrind Plug-in for Eclipse ”, Section 6.3.3, “OProfile Plug-in For Eclipse ”, and Section 6.5, “ Eclipse-Callgraph”.