User and Reference Guide for the Intel® C++ Compiler 14.0

p

Compiles and links for function profiling with gprof(1).

Architecture Restrictions

Not available on Intel® 64 architecture targeting Intel® MIC Architecture, or on IA-32 architecture targeting Intel® Graphics Technology

Syntax

Linux OS and OS X:

-p

Windows OS:

None

Arguments

None

Default

OFF

Files are compiled and linked without profiling.

Description

This option compiles and links for function profiling with gprof(1).

When you specify this option, inlining is disabled. However, you can override this by specifying pragma forceinline, declspec forceinline (Windows* OS), attribute always_inline (Linux* OS and OS X*), or a compiler option such as [Q]inline-forceinline.

IDE Equivalent

None

Alternate Options

Linux and OS X: -qp (this is a deprecated option)

Windows: None


Submit feedback on this help topic