Analyze Energy Usage

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*, Windows*, or Linux* OS system running on Intel architecture. Energy data is collected using Intel® SoC Watch, but results can be viewed as described below.

Energy Analysis with Intel® VTune™ Amplifier

You can use the VTune Amplifier as a visualizer for the energy analysis data collected by Intel SoC Watch. The standalone, Intel System Studio, and Intel Parallel Studio versions of the VTune Amplifier all support the import of the Intel SoC Watch results. Data collection is done separately.

This section provides an overview of what is needed to perform energy analysis on a target system running Windows, Linux, or Android OS and viewing the results with VTune Amplifier. Detailed instructions are available from Running Energy Analysis with Intel® VTune™ Amplifier.

  1. Install the appropriate version of Intel System Studio for your host and target system configuration. Be sure to include energy analysis and Intel VTune Amplifier in your installed component products.

  2. If the system on which Intel System Studio is installed is not the system on which energy analysis will be run, copy the Intel SoC Watch install package to the target system and install the collector and appropriate drivers. For more information, see the Intel SoC Watch Release Notes for the appropriate operating system.

  3. On the target system, set up the scenario to be analyzed for energy usage and run the data collection using Intel SoC Watch, including the option to write a result file that can be imported to VTune Amplifier (-f vtune). Data collection can occur on an idle system or run concurrently with a workload that is 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 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), and store the reports in a specified directory location with the specified file name (-o results/test), you would use:

    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).

    Tip

    • 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.

  4. Copy the import result file (test.pwr) from the target system to the host system.

  5. Import the file to a VTune Amplifier project as follows:

    1. Launch VTune Amplifier 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 information about Intel SoC Watch, see the Intel SoC Watch help.

For more complete information about compiler optimizations, see our Optimization Notice.
Select sticky button color: 
Orange (only for download buttons)