User Guide

Contents

Energy Analysis

Use Intel® SoC Watch and
Intel® VTune™
Profiler
to collect and analyze power and energy consumption metrics. You can collect data on Windows, Linux, or Android systems.

Energy Analysis with
Intel® VTune™
Profiler

There are two ways in which you can run energy analysis with
Intel® VTune™
Profiler
:
  • Get a snapshot of energy consumption metrics through the
    Intel® VTune™
    Profiler
    user interface.
  • Run a comprehensive analysis using Intel® SoC Watch and view results in
    Intel® VTune™
    Profiler
    .
Get Snapshot through
Intel® VTune™
Profiler
In the snapshot view, you can observe package power consumption over time when you run any analysis type in
Intel® VTune™
Profiler
. This option is available when you run
VTune
Profiler
on Windows, Linux, or Android systems.
  1. On the
    VTune
    Profiler
    welcome screen, click
    Configure Analysis
    .
  2. In the
    HOW
    pane, select an analysis type. In this example, we use the Hotspots analysis.
  3. Customize a copy of the analysis. Click this icon:
  4. Select options as necessary.
  5. At the bottom of the analysis type, check
    Analyze power usage
    .
  6. Click
    Start
    ( ) to run the analysis.
When the analysis completes,
VTune
Profiler
displays package power usage information (collected by Intel® SoC Watch) in the Platform tab.
Track package power usage to see if the CPU is likely to enter a throttling phase. If that happens, you can run a throttling analysis to explore possible causes.
Run Comprehensive Analysis using Intel® SoC Watch
For a more comprehensive energy analysis,
  1. Install Intel SoC Watch on the host and target.
  2. Set up scenario for energy analysis and run data collection.
  3. Import the data into
    VTune
    Profiler
    for analysis.
You can perform energy analysis on a target system running on Windows, Linux, or Android OS. All versions of
VTune
Profiler
(standalone, toolkit, and package components) support the import of results from Intel SoC Watch.
Install Intel SoC Watch
Install Intel SoC Watch on your host and target system configuration. You can install it from the Intel System Studio package or the Intel® System Bring-Up Toolkit.
If the system where you installed Intel System Studio is not the system on where you plan to run energy analysis, copy the Intel SoC Watch install package to the target system. Also install the collector and appropriate drivers.
For more information, see the Intel® SoC Watch Release Notes for the appropriate operating system.
Run Data Collection
On the target system, set up the scenario to be analyzed for energy usage and run the data collection using Intel SoC Watch. Include the
-r vtune
option to write a result file that can be imported to
VTune
Profiler
. You can perform data collection on an idle system or run it concurrently with a workload that started at any time before or during the collection.
You must have administrative/root privileges to start the data collection.
For example, to run a collection that performs these tasks:
  • For 1 minute (
    -t 60
    )
  • Gather data about how much time the CPU spends in low power states (
    -f cpu-cstate
    )
  • Include trace data (
    -m
    )
  • Store the reports in a specified directory location with the specified file name (
    -o results/test
    )
  • import into
    VTune
    Profiler
    (
    -r vtune
    )
type:
socwatch -t 60 -f cpu-cstate -m -o results/test -r vtune
The import file is saved to the results directory as
test.pwr
.
For detailed descriptions of options and the different metrics that can be collected, see the
Getting Started
section of the Intel® SoC Watch User's Guide (Linux and Android | Windows).
  • Use feature group names as a shorthand for specifying several features (metrics) that should be collected at the same time. For instance,
    -f sys
    collects many commonly used metrics, including low power state residency for CPU, GPU, and devices, CPU temperature and frequency, and memory bandwidth.
  • Use the
    --help
    option to discover all of the available metrics that can be collected on the system (found under feature and feature group names) as well as other options for controlling data collection and reporting.
Review Summary Report
  1. Copy the import result file (
    test.pwr
    ) from the target system to the host system.
  2. Import the file to a
    VTune
    Profiler
    project:
    1. Launch
      VTune
      Profiler
      GUI on the host system.
    2. Open/Create a project.
    3. Click the
      Import Result
      button on the toolbar and browse to the
      test.pwr
      file.
      The results are opened in the default
      Platform Power Analysis
      viewpoint.
For detailed instructions on using Intel SoC Watch to run energy analysis, see Running Energy Analysis with
Intel® VTune™
Profiler
.
For detailed information about using Intel SoC Watch, see the Energy Analysis User Guide.

Product and Performance Information

1

Intel's compilers may or may not optimize to the same degree for non-Intel microprocessors for optimizations that are not unique to Intel microprocessors. These optimizations include SSE2, SSE3, and SSSE3 instruction sets and other optimizations. Intel does not guarantee the availability, functionality, or effectiveness of any optimization on microprocessors not manufactured by Intel. Microprocessor-dependent optimizations in this product are intended for use with Intel microprocessors. Certain optimizations not specific to Intel microarchitecture are reserved for Intel microprocessors. Please refer to the applicable product User and Reference Guides for more information regarding the specific instruction sets covered by this notice.

Notice revision #20110804