Intel® VTune™ Amplifier 2016
You have completed the Analyzing Locks and Waits tutorial. Here are some important things to remember when using the
Intel® VTune™ Amplifier to analyze your code for locks and waits:
|
Step |
Tutorial Recap |
Key Tutorial Take-aways |
|---|---|---|
|
1. Prepare for analysis |
You built the target, created the performance baseline, and created the VTune Amplifier project for your analysis target. Your application is ready for analysis. |
|
|
2. Find lock |
You ran the Locks and Waits data collection and identified the following hotspots:
|
|
|
3. Remove lock |
You optimized the application execution time by removing the unnecessary mutex that caused a lot of Wait time. |
Expand the most time-critical synchronization object in the Bottom-up pane and double-click the wait function it belongs to. This opens the source code for this wait function and you can navigate to the most performance critical source lines. |
|
4. Check your work |
You ran the Locks and Waits analysis on the optimized code and compared the results before and after optimization using the Compare mode of the VTune Amplifier. The comparison shows that, with the optimized version of the tachyon_analyze_locks application (r001lw result), you managed to remove the lock preventing application parallelism and significantly reduce the application execution time. |
|