Intel® VTune™ Amplifier is a performance analysis tool targeted for users developing sequential and multithreaded applications. Intel VTune Amplifier helps you analyze the algorithm choices and identify where and how your application can benefit from available hardware resources.
Intel VTune Amplifier can be used to locate and determine the following:
- The most time-consuming (hot) functions in your application and/or on the whole system.
- Sections of code that do not effectively utilize available processor cycles.
- The best sections of code to optimize for sequential performance and for threaded performance.
- Synchronization objects that affect the application performance.
- Whether, where, and why your application spends CPU cycles on input/output operations.
- The performance impact of different synchronization methods, numbers of threads, or algorithms.
- Thread activities and transitions.
- Hardware-related issues in your code such as data sharing, cache misses, branch misprediction, and others.
Download and Install Intel VTune Amplifier
Intel VTune Amplifier is distributed as part of Intel® System Studio. If you are new to Intel System Studio, click the Download page at the Intel System Studio website to acquire a free renewable commercial license for a 90-day use.
Refer to the Download and Install Intel® System Studio section of the Intel® SoC Watch tutorial to install the Intel System Studio. Ensure the Intel VTune Amplifier is selected in the Component selection page during the installation. Review the product prerequisites page before installing Intel VTune Amplifier. The Intel VTune Amplifier package is available in the following directory after installation:
You can Integrate Intel System Studio to Wind River Linux* and Wind River* Workbench by browsing to the Wind River/Wind River Workbench install location. By default, the Intel System Studio installs and launches at the end of the installation.
You will be prompted to select/create a Workspace to store all projects and analysis while using Intel System Studio.
The following image is the first look of Intel System Studio:
Features Supported for Intel® Kaby Lake NUC Platforms
|Basic HotSpots||Yes||Use the Basic Hotspots analysis to understand application flow and identify sections of code that get a lot of execution time (hotspots).|
|Advanced HotSpots||Yes||Advanced Hotspots analysis is a fast and easy way to identify performance-critical code sections (hotspots) in your application and correlate this data with system performance.|
|General Exploration||Yes||Use the General Exploration microarchitecture analysis to triage hardware issues in your application.|
|System Overview Analysis||Yes||Use a platform-wide System Overview analysis to monitor a general behavior of your target Linux* or Android* system and correlate power and performance metrics with the interrupt request (IRQ) handling.|
|GPU Analysis||Yes||Use the Intel VTune Amplifier to profile applications that use a Graphics Processing Unit (GPU) for rendering, video processing, and computations. Intel VTune Amplifier can monitor, analyze, and correlate activities on both the CPU and GPU.|
|Java Code Analysis||Yes|
|Ftrace Events Analysis||Yes||Use an event library provided in the Custom Analysis configuration to select Linux* Ftrace* and Android* framework events to monitor with the event-based sampling collector.|
|Atrace Analysis||Yes||Use an event library provided in the Custom Analysis configuration to select Linux Ftrace and Android framework events to monitor with the event-based sampling collector.|
|Energy Analysis||Yes||Use the energy analysis capabilities available with the Intel System Studio to analyze power and energy consumption and identify system behaviors that waste energy on an Android system running on Intel® architecture. Energy data is collected using Intel® SoC Watch, but results can be viewed as described in the following sections.|
Intel VTune Amplifier Usage
This section uses the Basic Hotspots analysis as an example to understand application flow and identify sections of code that get a lot of execution time (hotspots). This is a starting point to analyze your algorithm.
A large number of samples collected at a specific process, thread, or module can imply high processor utilization and potential performance bottlenecks. Some hotspots can be removed, while other hotspots are fundamental to the application functionality and cannot be removed.
Intel® VTune Amplifier displays a list of functions in your application, ordered by the amount of time spent in each function. It also captures the call stacks for each of these functions so you can see how the hot functions are called.
Note that the collector does not gather system-wide performance data, but instead focuses on your application only. To analyze system performance, you should run the Advanced Hotspots analysis.
Use the Basic Hotspots analysis to explore:
- Configuration options (knobs)
- View Points
Launch the Intel VTune Amplifier
You can launch the Intel VTune Amplifier from within the Intel System Studio IDE by selecting the Intel System Studio > VTune Amplifier > Launch VTune Amplifier menu items. The IDE sets all appropriate environment variables before opening the tool.
You can also launch the Intel VTune Amplifier directly with one of the following commands:
- To use the standalone GUI interface, run the amplxe-gui command.
- To use the command line interface, run the amplxe-cl command.
Create a Project
Before you run an analysis with the Intel VTune Amplifier, you have to create a project. A project is a container for an analysis target, analysis type configuration, and data collection results.
There are three options available to create a project using the standalone GUI:
- Click the menu button in the upper right corner and select New > Project....
- Click the New Project toolbar button.
- Click the New Project... hyperlink in the Welcome page.
Enter the project name in the pop-up Create a Project dialog box:
Input fields in the Create a Project dialog box are summarized as follows:
Click the Create Project button, and the tool opens a New Amplifier Result tab, which represents the Analysis Target window. You can re-open the Analysis Target window anytime with the following options:
When you create a project for the Intel VTune Amplifier performance analysis, you have to specify what you want to profile - your analysis target (this could be an executable file), a process, or a whole system.
The following are instructions to prepare your target for analysis:
1. Select the Android* device (ADB) option as shown in the previous figure under Select a target system to profile section.
2. Select your Android target device. If multiple devices are connected to your host machine, be careful to choose the right device based on the device ID.
3. Choose a target type to profile by selecting the Attach to Process, Profile System, Launch Application, or Launch Android Package option. The Attach to Process option is selected in this tutorial.
4. After you select the target profile type, the corresponding options are available on the middle pane. Using the Attach to Process profile type, the associated options appear to select the specific processes based on either Process name or PID. Once the target process name is entered, you can see the list of Process names. For example, the Chrome* browser process name ’com.google.chrome’ is selected in the previous figure.
5. Next, click on Choose Analysis in the right pane to proceed with the Analysis Type selection.
6. Within Analysis Type you can select an Algorithm Analysis type such as Basic Hotspots. You can also configure analysis options (e.g. sampling interval or Analyzing user tasks, events, counters) here.
7. Once you select all hotspots you want to debug, click the Start button after you verify that your use case is running on the target device.
8. Intel VTune Amplifier collects the Basic Hotspots data as shown in the following image. You can interrupt or stop based on your use case scenario completion by clicking on Stop button.
Intel VTune Amplifier generates the analysis reports after manual data collection is stopped, or the configed stop conditions are met. The following figure shows an example what the Basic Hotspots summary looks like:
In addition to the report summary, several views are available to profile the collected data. For example, click on the Bottom-Up tab to see how your application utilized the CPU:
Click on the Caller/Callee tab to see more details on the function calls flow:
Click on the Top-Down Tree tab to see more call stack details:
You can also set the filter based on your interested components at the bottom of the window:
|Online Training||The online training site is an excellent resource for learning Intel VTune Amplifier basics with Getting Started guides, videos, tutorials, webinars, and technical articles.|
|Intel VTune Amplifier Tutorials||Tutorials show you how to use basic Intel VTune Amplifier features. Intel VTune Amplifier tutorials guide a new use through basic walkthrough operations with a short sample. The tutorials provide an excellent foundation before you read the Intel VTune Amplifier help. Sample code is available in the `samples` folder inside the VTune Amplifier install directory. More Intel VTune Amplifier sample code and corresponding tutorials are also available at *Intel Developer Zone website*.|
|Intel VTune Amplifier Cookbook||Performance analysis cookbook that contains recipes identifying and solving the most popular performance problems with the help of Intel VTune Amplifier’s analysis types.|
The Release Notes document contains the most up-to-date information about the product, including a product description, technical support, and known limitations and issues.
This document also contains system requirements for installing the product. Before installation, the Release Notes document is located at the root level (same level as the installation script/executable) of the installation download package.
The installation Guide contains basic installation instructions for Intel VTune Amplifier and post-installation configuration instructions for the various drivers and collectors.
The latest Installation Guide can be found on the Intel Developer Zone website.
|Intel VTune Amplifier Help||The help is the primary document for the Intel VTune Amplifier.|
|Intel Processor Event Reference||This help provides reference information for Intel processor events used by the Intel VTune Amplifier for hardware event-based sampling analysis. Most of this information is drawn from the Intel Processor information sources on the web.|