Here you will get introduced to the power tools you will be using on a Windows 10 system. The tools you will be introduced to are the Intel Power Gadget, Windows Performance Toolkit, Windows TypePerf built-in utility and the Intel Battery Life Analyzer. The Intel Power Gadget gives a 10,000 foot view of the applications power consumption. The Windows Performance Toolkit allows you to drill down on why power consumption is high for a particular portion of the application running. The built-in utility TypePerf which is located in C:\Windows\System32 also provides a 10,000 foot view of overall application performance by providing a wealth of performance data. The last tool discussed is the Intel Battery Life Analyzer which provides in-depth C-state information that is not reported by the Windows TypePerf utility or the Windows Performance Toolkit.
- View Offline
- [Voiceover] There are four tools that will be used in this course to manage power consumption. The first is the Intel Power Gadget which gives a nice overview of your system's overall power consumption and how that changes according to your applications' behavior. The second is the Windows Performance Toolkit which is a collection of very powerful tools, so powerful, in fact, that we will not cover all of the features in the toolkit. We will only use what we need in order to find the root cause of high power consumption in the application. The third is the Windows Typeperf built-in utility that comes with windows.
This gives us a nice overview of the system resource consumption and how that changes during the application run-time. The fourth and last tool that we go over is the Intel Energy Profiler SoC Watch. SoC stands for system on chip, and this gives us detailed C and P-state residency report information. This is a very handy tool because it gives us C-state information that the other three tools do not give. Now, when it comes to the Intel Power Gadget, this tool gives us a 10,000-foot view of our system's overall power consumption.
We can find out quickly if our application is power hungry or not. By power hungry I mean the application consumes a high amount of power which will cause the battery life on your mobile device to drain at a much faster rate. We can look at trends in power spikes and see how the application consumes power when it's responding to user input. After the Intel Power Gadget, when we look at the Windows Performance Toolkit, this is for that deep dive analysis. We can drill down into the application's call sack to find the critical path. Now, what do I mean by the critical path? The critical path is the call sack to the root cause of why your application has high power consumption.
It provides other detailed information such as CPU usage, CPU C-states, and the timer tick resolution rate change of the operating system. The third tool is the Windows Tyeperf tool. This gives us that 10,000-foot view of the application resource consumption, such as the application's memory usage, CPU usage, context switch rate, interrupt rate, and CPU C-state residency. Now, the Typeperf only reports up to the C-state residency of C3. If we want deeper C-state residency information, that's when we go to the fourth and the last tool, the Intel Energy Profiler.
This gives us CPU C, P, and GT-state residency information from both a hardware perspective and a software perspective. What do I mean by hardware? That means that what was actually obtained, that's obtained from reading energy counters that reside on the processor itself and reading model-specific registers, commonly called MSRs. From the software perspective, that means what the operating system requested. So the way to look at this is that software is what was requested from the operating system, hardware is what was actually obtained.
So those are the four tools that we will be using to power profile two video game applications.
With these diagnostic tools and some efficient programming, you can reduce your app's power consumption while improving its response times. In this course, Thomas Pantels introduces a handful of tools used to measure and optimize power consumption. You will see demos on how to use the Intel Power Gadget, Windows Performance Toolkit, TypePerf, and SoC Watch, along with some simple coding tips for making any Windows app more energy efficient.
- Collecting and analyzing power data with Intel Power Gadget
- Implementing a rendering state machine
- Collecting and analyzing data with the Windows Performance Toolkit
- Understanding idle states, call stack walking, and thread activity
- Windows OS Timer Tick Resolution Rate change
- Optimization techniques to make your app power efficient
- Collecting, analyzing, and comparing data with Windows TypePerf and SoC Watch