Difference between revisions of "ThreadScope Tour/Zoom"
Jump to navigation
Jump to search
(paste from pandoc) |
(→Steps: tidy up use of images) |
||
Line 10: | Line 10: | ||
<pre>threadscope ./sudoku3.eventlog</pre></li> |
<pre>threadscope ./sudoku3.eventlog</pre></li> |
||
<li><p>Notice the initial lack of activity at the very beginning of program execution</p> |
<li><p>Notice the initial lack of activity at the very beginning of program execution</p> |
||
− | [[Image:ThreadScope-sudoku3-initial.png| |
+ | [[Image:ThreadScope-sudoku3-initial.png|Ramping up]] |
<p>What's going on there?</p></li> |
<p>What's going on there?</p></li> |
||
<li><p>Use the zoom in button to explore that space a bit more (''Hint: you can also press +/- on the keyboard'')</p> |
<li><p>Use the zoom in button to explore that space a bit more (''Hint: you can also press +/- on the keyboard'')</p> |
||
− | [[Image:ThreadScope-zoom.png| |
+ | [[Image:ThreadScope-zoom.png|Zooming in]] |
<p>Notice how different the profile looks close up. What do you see? At closer inspection what looks like a moderate amount of activity is actually intense bursts using both cores, with pauses in between.</p></li> |
<p>Notice how different the profile looks close up. What do you see? At closer inspection what looks like a moderate amount of activity is actually intense bursts using both cores, with pauses in between.</p></li> |
||
<li><p>Save the point in the zoomed-in profile as a bookmark. To do so, click in the graph to move the blue cursor to a spot of your choice.</p> |
<li><p>Save the point in the zoomed-in profile as a bookmark. To do so, click in the graph to move the blue cursor to a spot of your choice.</p> |
||
− | [[Image:ThreadScope-sudoku3-cursor.png| |
+ | [[Image:ThreadScope-sudoku3-cursor.png|Click!]] |
<p>Then switch to bookmarks tab. Press the plus button to create the bookmark and click in the labels field to name it.</p> |
<p>Then switch to bookmarks tab. Press the plus button to create the bookmark and click in the labels field to name it.</p> |
||
− | [[Image:ThreadScope- |
+ | [[Image:ThreadScope-bookmark.png|The bookmark tab]] |
− | [[Image:ThreadScope-bookmarks-label.png| |
+ | [[Image:ThreadScope-bookmarks-label.png|Adding a label]] |
</li></ol> |
</li></ol> |
Revision as of 16:01, 7 December 2011
Objectives
- Use zooming to reveal more detailed performance issues
- Save your place with the bookmark feature and zoom back out
Steps
Open the sudoku3 ThreadScope profile created earlier
threadscope ./sudoku3.eventlog
Notice the initial lack of activity at the very beginning of program execution
What's going on there?
Use the zoom in button to explore that space a bit more (Hint: you can also press +/- on the keyboard)
Notice how different the profile looks close up. What do you see? At closer inspection what looks like a moderate amount of activity is actually intense bursts using both cores, with pauses in between.
Save the point in the zoomed-in profile as a bookmark. To do so, click in the graph to move the blue cursor to a spot of your choice.
Then switch to bookmarks tab. Press the plus button to create the bookmark and click in the labels field to name it.