Profile 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.