See what this course is all about from looking at a Single Threaded House building application launch to collecting CPU data and looking at the inner workings of the application. You are then shown glimpses of the improved multi-threaded version of the application and what the CPU Usage is like after optimization. Briefly see the dramatic differences in execution time and CPU usage.
- [Lecturer] The Windows Performance Toolkit contains two powerful tools that work hand-in-hand to provide the full picture of how an application utilizes the CPU. The first tool we'll look at is the Windows Performance Recorder. This tool captures system events, which is basically the interaction between programs and hardware. That raw event data can then be organized into useful tables and visualized with graphs using the second tool, the Windows Performance Analyzer. Here we'll use the Windows Performance Toolkit to inspect the CPU usage of an application that simulates building a house from pouring the foundation, to shingling the roof.
We'll start off by call stack walking, a technique that shows the inner workings of any application regardless of whether or not you have access to the source code. Using call stack walking, you'll see what functions are called and the CPU usage time for each function. We'll see the source code for both the single-threaded version and the multi-threaded version. This will help connect the functions being called to what you see while call stack walking. By the end of this course, you will see how task parallelism can make a dramatic difference in CPU usage, as we optimize the app, making it multi-threaded.
This cuts the execution time down, making it faster by six seconds. The first tool we'll look at is the Windows Performance Recorder. This tool captures system events, which are basically the interactions between programs and hardware.
- Looking at single-threaded source code
- Collecting CPU data
- Call-stack walking
- Inspecting thread activity
- Transforming a single-threaded app into a multithreaded app