Intel® C++ Compiler 16.0 User and Reference Guide

p

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

Architecture Restrictions

Not available on Intel® 64 architecture targeting the Intel® Xeon Phi™ coprocessor x100 product family (formerly code name Knights Corner) , on IA-32 architecture targeting Intel® Graphics Technology, or on Intel® 64 architecture targeting Intel® Graphics Technology

Syntax

Linux and OS X:

-p

Windows:

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*), attribute always_inline (Linux* 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