Time for the actual collection where all recording options are selected and with the environment setup you will see the single threaded house building application working and how long it takes to build that house. Pointers and tips are given during the data collection process in order to make the inspection in WPA easier.
- [Man] When profiling an application, we want our…environment to be as isolated as possible.…To do that we want to close all unneeded programs.…So let's close this unneeded notepad right here.…Now the application we're profiling doesn't…need the internet, so I've already turned it off.…Turning off our internet will disable most of the services…that might be updating in the background…which would skew our results.…Since you're most likely watching this course…over the internet, you'll need to keep your…connection active, but keep in mind while you follow along…and do the recording with your internet on,…the results you see could be different from mine.…
Best practice would normally be to disable the internet…if your application does not need it.…With the WPR UI opened and CPU usage selected,…it's time to start.…Let's grab a stopwatch to keep track of time,…since we're going to minimize the WPR UI menu…to reduce its CPU usage.…I'm going to use the stopwatch on my phone.…Now let's click on start and minimize the window.…
- Looking at single-threaded source code
- Collecting CPU data
- Call-stack walking
- Inspecting thread activity
- Transforming a single-threaded app into a multithreaded app