Intel® VTune™ Amplifier

Running Analysis from the Command Line

You can use either the collect or collect-with actions to perform analysis. These actions are similar, but the collect-with action provides some additional support for customization.

The analysis process includes data collection, finalization, creation of a result, and the generation of a Summary report. The terms analysis and collection are synonyms for these processes.

Getting Information on Analysis Options

Intel® VTune™ Amplifier offers many ways to get information on analysis options.

Running an Analysis

To run a performance analysis from the command line, use the amplxe-cl command as follows:

amplxe-cl -collect <analysis_type> [--] <target>

where

Outcome: VTune Amplifier collects the specified type of data.

Next steps: After collecting performance results for your target, you can view the result in the GUI or use the report action to generate a report.

Running Analysis Remotely from the Command Line

For remote analysis, make sure to use the -target-system option to specify one of the following types of the remote target systems:

Example

Run a Hotspots analysis on myApplication:

$ amplxe-cl -collect hotspots -- home/test/myApplication

This example of the collect-with action shows how knobs are used. Run a custom hardware event-based sampling collection for the sample application with the specified events.

$ amplxe-cl -collect-with runsa -knob event-config=CPU_CLK_UNHALTED.CORE,CPU_CLK_UNHALTED.REF,INST_RETIRED.ANY home/test/sample

Run the Advanced Hotspots analysis for a native application on the Intel Xeon Phi coprocessor:

$ amplxe-cl --collect advanced-hotspots --knob collection-detail=stack-sampling --target-system=mic-native -r matrix_r001 --search-dir /opt/mpss/3.2.1/sysroots/k1om-mpss-linux/boot

See Also