Intel® VTune™ Amplifier

Viewing Source Objects from the Command Line

Use the -source-object option to switch report to source or assembly view mode, including associated performance data. Here is the command syntax for viewing source objects in the command line:

amplxe-cl -report <report_type> -source-object <object_type> [=]<value> -result-dir <result_dir>

where

Note

To define a particular object, you can specify this option more than once. For example, if two modules have a function named foo, Intel® VTune™ Amplifier will throw an error unless you specify both the module and function.

Examples

Example 1: Report Displaying Source Data

This example generates a hardware events report that displays source data for the foo function. Since the result directory is not specified, the most recent hardware analysis result in the current working directory is used.

amplxe-cl -report hw-events -source-object function=foo

Example 2: Report on Specified Object

This example specifies the object as the function foo in module1. This would avoid a conflict if there was a second function named foo in some other module.

amplxe-cl -report hw-events -source-object module=module1 -source-object function=foo

Example 3: Report with Grouped Assembly Data

This example generates a hardware events report that displays assembly data grouped by basic block and then address.

amplxe-cl -report hw-events -source-object function=foo -group-by basic-block,address