Intel® VTune™ Amplifier

Running Command Line Analysis

To run an analysis from command line, use any of the following actions:

Command Line Analysis Workflow

To run an analysis from the command line, do the following:

  1. Choose an appropriate analysis type: predefined analysis or custom analysis.
  2. Configure Analysis Target
  3. Configure Analysis Knobs
  4. Manage Data Collection

Choosing an Analysis Type

For a list of available predefined analysis types, enter:

amplxe-cl -help collect

Intel® VTune™ Amplifier displays all collection options and provides a list of available predefined analyses that can be categorized into the following analysis modules:

Analysis Analysis Type Description
Algorithm Analysis Basic Hotspots

Analyze application flow and identify sections of code that take a long time to execute (hotspots).

Advanced Hotspots

Extend the Hotspots analysis by collecting call stacks, context switch and statistical call count data as well as analyzing the CPI (Cycles Per Instruction) metric.

Concurrency

Collect data on how an application is using available logical CPUs, discover where parallelism is incurring synchronization overhead, and identify potential candidates for parallelization.

Locks and Waits

Identify where an application is waiting on synchronization objects or I/O operations, and discover how these waits affect the application performance.

HPC Characterization

Note

This is a PREVIEW FEATURE. A preview feature may or may not appear in a future production release. It is available for your use in the hopes that you will provide feedback on its usefulness and help determine its future. Data collected with a preview feature is not guaranteed to be backward compatible with future releases. Please send your feedback to parallel.studio.support@intel.com in the next 30 days.

Identify opportunities to optimize CPU, memory, and FPU utilization for compute-intensive or throughput applications. The HPC Performance Characterization analysis type is a starting point for understanding the performance landscape of your application. Use this analysis type to improve application performance by increasing the number of floating-point operations per second (GFLOPS) and reducing the overall application run time. The analysis collects data related to CPU, memory, and FPU utilization. Additional scalability metrics are available for applications that use OpenMP or MPI runtime libraries.

Microarchitecture Analysis General Exploration

Collect hardware events for analyzing a typical client application. This analysis calculates a set of predefined ratios used for the metrics and facilitates identifying hardware-level performance problems.

Memory Access

Identify memory-related issues, like NUMA problems and bandwidth-limited accesses, and attribute performance events to memory objects (data structures), which is provided due to instrumentation of memory allocations/de-allocations and getting static/global variables from symbol information.

SGX Hotspots Analyze hotspots inside security enclaves for systems with the Intel Software Guard Extensions (Intel SGX) feature enabled. This analysis type uses the the INST_RETIRED.PREC_DIST hardware event that emulates precise clockticks and helps identify performance-critical program units inside enclaves.
TSX Exploration

Collect events that help understand Intel Transactional Synchronization Extensions (Intel TSX) behavior and causes of transactional aborts.

TSX Hotspots

Monitor the UOPS_RETIRED.ALL_PS hardware event that emulates precise clockticks and identify performance-critical program units inside transactions.

Platform Analysis CPU/GPU Concurrency

Explore code execution on the various CPU and GPU cores in your system, correlate CPU and GPU activity and identify whether your application is GPU or CPU bound.

System Overview

Evaluate general behavior of Linux* or Android* target systems and correlate power and performance metrics with IRQ handling. This analysis is supported by VTune Amplifier for Systems only.

For a list of available custom analysis types, enter:

amplxe-cl -help collect-with

Intel® VTune™ Amplifier displays all collection options and provides a list of available collection types that can used for custom analysis:

Collection Description
Hardware Event-based Sampling Collection (runsa)

Profile your application using the counter overflow feature of the Performance Monitoring Unit (PMU).

User-mode Sampling and Tracing Collection (runss)

Profile the application execution and take snapshots of how that application utilizes the processors in the system. The collector interrupts a process, collects the value of all active instruction addresses and captures a calling sequence for each of these samples.

Running Analysis

To run a predefined performance analysis from the command line, enter:

amplxe-cl -collect <analysis_type> [<-knob> <knob_name=knob_option>] [--] <target>

where

To run a custom analysis from the command line, enter:

amplxe-cl -collect-with <collection_type> [<-knob> <knob_name=knob_option>] [--] <target>

where

Next Steps

After collecting performance results for your target, you can view the results in the GUI or generate a formatted analysis report.

See Also