Profiling your programs

Whether you plan to do profiling in real time or postmortem, you'll need to build your programs with profiling enabled before starting a profiling session (for Instrumented profiling).

Note: If you already have a gmon.out, .kev, or .ptrace file, you're ready to start a Postmortem profiling for Call Count and sampling session.
Related concepts
Types of profiling
Controlling your profiling sessions
Understanding your profiling data
Profiler Sessions view
Debug view
Execution Time view
Annotated source editor
Using the Application Profiler