Run Energy Analysis
- 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. 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 vtuneThe import file is saved to the results directory astest.pwr.
- 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.
- 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.