Run Energy Analysis
To analyze the power consumption of your Android*, Windows*, or Linux* platform, run the Intel® SoC Watch collector and view the results using
Intel VTune
.
Profiler
Using the data visualization provided by
Intel VTune
, along with the detailed reports generated by Intel SoC Watch, a user can measure, debug, and optimize system power consumption. Data collection can occur on the system where
Profiler
Intel VTune
is installed or on a remote target system.
Profiler
Prerequisites:
The Intel SoC Watch collector is installed on the target system. For detailed instructions on configuring your environment, see the
Installation
section of the Intel SoC Watch Release Notes for your target system's operating system. The latest Intel SoC Watch documents are
available online at the Intel Developer Zone site. You can also find a copy
on the target system in the product's
documentation
directory after extracting the Intel SoC Watch package.
- 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 toVTune(Profiler-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.Users in Linux environments do not require root privileges to run energy analysis. Once your system administrator installsVTunesampling drivers and configures them with the necessary permissions, users without root privileges can collect energy data when profiling withProfilerVTune. On Windows systems, you must have administrator privileges to collect data on energy consumption.ProfilerFor 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 vtuneThe import file is saved to the results directory astest.pwr.For detailed descriptions of options and the different metrics that can be collected, see theGetting Startedsection 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 syscollects many commonly used metrics, including low power state residency for CPU, GPU, and devices, CPU temperature and frequency, and memory bandwidth.
- Use the--helpoption 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.
- If running on a remote target system, copy the import file to the system whereVTuneis installed. The import file has aProfiler(*.pwr)extension, such asresults/test.pwrfrom the example command.
- LaunchVTune.Profiler
- Open
or create
a project.
- Click theImport Resultbutton on the toolbar and browse to the import file that you copied from the target system.When the import completes, thePlatform Power Analysisviewpoint opens automatically.