Exporting Data to CSV File

The Export option enables you to export the currently opened view to a .csv file for viewing and editing using a different application.

The VTune(TM) Performance Environment exports the data as it is displayed in the view. The exported output reflects the filter and sort order currently in effect.

To export your data:

  1. Choose Export>Results to Text (CSV) from the File menu to open the Results to Text (CSV) dialog box.

  1. Fill in or browse to the file name and path to export to.

  2. Choose the Export range.

  3. Choose the view you want to export in the Export what drop-down list.

  4. Click OK to export the data to a file (.csv).

To change the column delimiter default, you need to set the VTUNE_EXPORT_DELIMITER environment variable. If you want to keep the setting for future sessions, set the environment variable in your startup shell. The following examples set the delimiter to ";"

export VTUNE_EXPORT_DELIMITER=";"     #for sh,ksh,bash and other related shells

Or

setenv VTUNE_EXPORT_DELIMITER ";"     #for csh, tcsh and other related shells

To export your data from the command line:

use the -column-delimiter (or -cd) option to specify a symbol to delimit columns and redirect the output to a .csv file.

Command-line example:

>vtl view -processes -cd , > qqq.csv

OR

>vtl view -processes -cd "," > qqq.csv

In this example, the process view data is exported to the qqq.csv file.

 

Related Topics