Setting Environment Variables

The VTune(TM) Performance Analyzer enables you to change the default location for your data files and the global data directory using environment variables. You may want to do this, for example, if there is not enough disk space in the directories chosen as the defaults for these locations.

Note

Setting the User's Data Directory

The location of the VTune analyzer user's files, including data files associated with Activities and Activity results, can be changed by using the VTUNE_USER_DIR environment variable. The following file types can be found in the user's data directory: files used to save settings that are independent of the project, the project and the files associated with the project, such as data files and configuration files.

To set the user data directory, enter:

Note

export VTUNE_USER_DIR=<directory_name> #for sh,ksh,bash and other related shells

OR:

setenv VTUNE_USER_DIR=<directory_name> #for csh, tcsh and other related shell

It is recommended that this step be done in your shell start-up script. Otherwise, you will have to perform it each time you log in. If this environment variable is not specified, the default location for the user's data files is $HOME/VTune. To find out the value of the HOME environment variable, enter:

>echo $HOME

Setting the Global Data Directory

The VTune analyzer reserves a special global data directory to store certain types of data that are shared across multiple users (for example, symbol files).

The VTUNE_GLOBAL_DIR environment variable is used to specify the default location of the global data directory. This environment variable normally should not be specified for an individual user and is typically set by the administrator.

If this environment variable is not specified, the default location is <install_dir>/global_data (it is defined by the administrator during installation).

Note

If the administrator does not remove the default global data directory when uninstalling vtl on Linux, the directory and its content will stay on the machine and can be used at the next installation.