To analyze the power consumption of your Android*, Windows*, or Linux* application, install and run the Intel® SoC Watch collector on the target system and view the collection results in the Platform Power Analysis viewpoint.
To collect power consumption data on an Android*, Windows*, or Linux* application:
Prerequisites: The appropriate Intel® SoC Watch collector is installed on the target system. If you are using an Android or Linux target system, make sure it is connected via ADB or Cygwin to the host system with Intel VTune™ Amplifier for Systems installed.
-
Run the Intel SoC Watch collector on your target system.
For example, use the following command to collect processor sleep state (C-state) and processor frequency (P-state) data for 60 seconds and generate an import file for use in VTune Amplifier. Only the result option (-r) differs between platforms.
On an Android or Linux system:
./socwatch –-max-detail –f cpu-cstate –f cpu-pstate –t 60 -r vtune –o ./results/test
Note
Avoid using
CTRL+C via ADB to terminate an Intel SoC Watch collection when running from a Windows host. Instead, use a timed collection or a Linux host.
On a Windows system:
socwatch –-max-detail –f cpu-cstate –f cpu-pstate –t 60 -r sww –o ./results/test
Power consumption data is collected and saved in a *.sww1 (for Windows OS)/*.pwr (for Android or Linux OS) file in the results directory.
- Launch the VTune Amplifier for Systems GUI.
- Create/Open a VTune Amplifier project.
- Import the appropriate result file (Windows: *.sww1, Android/Linux: *.pwr) to the VTune Amplifier project using the
Import Result button on the toolbar. To import a result from the VTune Amplifier command line, use the -import option and then open the imported result using the Open Result button. Example:
$amplxe-cl –import <path_to_import_file> –r <project_name>
VTune Amplifier for Systems opens your result in the Platform Power Analysis viewpoint.