# prof-dir, Qprof-dir

Specifies a directory for profiling information output files. This feature is only available for ifort.

## Syntax

Linux: | -prof-dir dir

macOS: | -prof-dir dir

Windows: | /Qprof-dir:dir

## Arguments

dir | Is the name of the directory. You can specify a relative pathname or an absolute pathname.

## Default

OFF | Profiling output files are placed in the directory where the program is compiled.

## Description

This option specifies a directory for profiling information output files (*.dyn and *.dpi). The specified directory must already exist.

You should specify this option using the same directory name for both instrumentation and feedback compilations. If you move the .dyn files, you need to specify the new path.

Option /Qprof-dir is equivalent to option /Qcov-dir. If you specify both options, the last option specified on the command line takes precedence.

## IDE Equivalent

Visual Studio: Output Files > Profile Directory

## Alternate Options

None

Parent topic: Profile Guided Optimization Options