Personal tools

ThreadScope Tour/Zoom

From HaskellWiki

< ThreadScope Tour
Revision as of 16:00, 7 December 2011 by EricKow (Talk | contribs)
(diff) ←Older revision | Current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search

1 Objectives

  • Use zooming to reveal more detailed performance issues
  • Save your place with the bookmark feature and zoom back out

2 Steps

  1. Open the sudoku3 ThreadScope profile created earlier

    threadscope ./sudoku3.eventlog
  2. Notice the initial lack of activity at the very beginning of program execution

    alt=Ramping up
    alt=Ramping up

    What's going on there?

  3. Use the zoom in button to explore that space a bit more (Hint: you can also press +/- on the keyboard)

    alt=Zooming in
    alt=Zooming in

    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.

  4. 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.

    alt=Click!
    alt=Click!

    Then switch to bookmarks tab. Press the plus button to create the bookmark and click in the labels field to name it.

    Image:ThreadScope-bookmarks.png
    alt=The bookmark tab
    alt=Adding a label
    alt=Adding a label