Inserts instrumentation calls at a function's entry and exit points, and before and after instrumentable loops.

Syntax

Linux and macOS:

-profile-loops=keyword

Windows:

/Qprofile-loops:keyword

Arguments

keyword

Specifies which type of loops should have instrumentation. Possible values are:

inner

Inserts instrumentation before and after inner loops.

outer

Inserts instrumentation before and after outer loops.

all

Inserts instrumentation before and after all loops.

Default

OFF

No instrumentation calls are inserted at a function's entry and exit points, or before and after instrumentable loop.

Description

This option inserts instrumentation calls at a function's entry and exit points within a single-threaded application. For unthreaded applications, it also inserts instrumentation before and after instrumentable loops of the type listed in keyword.

When the instrumented application is run, this option causes the generation of a loop_prof_funcs_<name>.dump file and a loop_prof_funcs_<name>.dump file, where <name> is a timestamp for the run.

The same timestamp is used for the loop file and function file. This identifies that the loop data and function data were from the same program run.

The same data values are also dumped into the file loop_prof_<name>.xml for use with the data viewer application, unless you turn off the output format by setting the environment variable INTEL_LOOP_PROF_XML_DUMP to 0.

IDE Equivalent

None

Alternate Options

None

有关编译器优化的更完整信息,请参阅优化通知