Save and Format Command Line Reports

By default, a report is written to stdout in text format, but vtune provides several options to control the report format:

Save a Report to a File

When generating a report from the command line, use the report-output option to save this report in the specified format. By default, most types of reports are saved in text format, but you may also choose CSV. Whichever file type you choose, a number of options are available so you can format your report.

Here is the basic command syntax:

vtune -report <report_type> -result-dir <dir> -report-output <path/filename.ext>

where:

Note

To be sure the correct result is used, use the result-dir option to specify the result directory. If not specified when generating a report, the report uses the highest numbered compatible result in the current working directory.

Examples:

Limit Line Width

To limit line width for readability, use the report-width option and specify the maximum number of characters per line before wrapping occurs.

Example:

Output a Hotspots report from the most recent result as a text file with a maximum width of 60 characters per line.

vtune -report hotspots -report-width 60 -report-output MyHotspotsReport.txt

See Also