User Guide

Intel® VTune™ Profiler User Guide

ID 766319
Date 3/31/2023
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

app-working-dir

Specify the application directory in auto-generated commands.

GUI Equivalent

Configure Analysis window > HOW pane > Launch Application target type

Syntax

-app-working-dir=<PATH>

Arguments

A string containing the PATH/name.

Default

Default is the current working directory.

Actions Modified

collect, collect-with

Description

If your data files are stored in a separate location from the application, use the app-working-dir option to specify the application working directory.

Example

This command line example changes the application directory to C:\myAppDirectory (on Windows*) and to /home/myAppDirectory(on Linux*) to run the myApp application, uses binary and symbol files found in the directory specified by the search-dir option to finalize the result, writes the result in the default result directory, and then returns to the working directory.

On Windows:

vtune-cl -collect hotspots -app-working-dir C:\myAppDirectory -search-dir C:\mySources -- myApp.exe

On Linux:

vtune-cl -collect hotspots -app-working-dir /home/myAppDirectory -search-dir /home/mySources -- myApp