Join Thomas Pantels for an in-depth discussion in this video Using the exercise files, part of Windows Performance Toolkit: CPU Analysis.
- [Instructor] To see the functions using the .etl files included in the Exercise Files, we need to simply copy over the included Symbols and SymCache folders to our root directory. The Exercise Files for this course are located in my Downloads directory. I'm going to create a desktop shortcut for easy access. If I go up to Directory, they're here in my Downloads. I'm going to right click, select Create Shortcut, and then I'm going to drag and drop this shortcut over to my desktop.
I'm going to reorganize this a bit. Now let's select these two folders that we need, right click, select Copy, let's then go to our C drive, and let's right click and select Paste to paste them to our root directory. You should now be able to see the function names for your application. If you haven't done this correctly, you'll see PDB Not Found, or a question mark in the Functions column when we're inspecting the application inside the Windows Performance Analyzer later on in the course.
If you do not have access to the Exercise Files, that's no problem, you can easily follow along if you compile your own single-threaded application, collect the trace data, and analyze it on the same machine. As a best practice, it's ideal to compile the application and then collect and analyze the trace data on the same machine, but it's also possible to collect data for an application on one machine and then analyze it on another. To do that, you need to follow these steps. One, open up the trace file inside the Windows Performance Analzyer at least once on the same machine your test application was compiled on, and select Load Symbols.
If this is your first time loading symbols, it could take up to an hour. This will generate two folders inside your root directory. The first is the symbols folder, and the second is the SymCache folder. You then copy these two folders over to any other computer you wish to analyze the trace on. The last step is once you've copied over the folders, keep your internet connection off and simply click on the Load Symbols tab inside the Windows Performance Analyzer. Now let's get started.
- Looking at single-threaded source code
- Collecting CPU data
- Call-stack walking
- Inspecting thread activity
- Transforming a single-threaded app into a multithreaded app