Inlining is disabled by -pg instrumentation for gprof

Submit New Article

January 19, 2012 11:00 PM PST


The Intel Compiler for Linux supports the option -pg. This instruments the binary to allow function level profiling using gprof. To do this, it also disables function inlining, which may result in some loss of performance. This consequence of -pg is not documented in version 12.1 of the Intel Compiler for Linux, but will be documented in future versions.
          For performance analysis and profiling of applications without impacting inlining, Intel(R) VTune(TM) Amplifier XE may be used.


Do you need more help?


This article applies to: Intel® C++ Compiler for Linux* Knowledge Base,   Intel® Fortran Compiler for Linux* Knowledge Base