Difference between revisions of "ThreadScope Tour"

From HaskellWiki
Jump to navigation Jump to search
m (→‎Getting Started: suppress section numbering)
(don't use mediawiki titles - the numbers are confusing)
Line 16: Line 16:
 
''This tutorial was initially written by Well-Typed in the context of the [[Parallel GHC Project]]. [mailto:eric@well-typed.com Feedback] would be most appreciated!''
 
''This tutorial was initially written by Well-Typed in the context of the [[Parallel GHC Project]]. [mailto:eric@well-typed.com Feedback] would be most appreciated!''
   
<div class="subtitle">Getting Started</div>
+
<div class="subtitle">Getting started</div>
   
 
# [[ThreadScope_Tour/Install|Installation]]: install ThreadScope and run a sample trace
 
# [[ThreadScope_Tour/Install|Installation]]: install ThreadScope and run a sample trace
 
# [[ThreadScope_Tour/Run|Hello world]]: run ThreadScope on a small test program
 
# [[ThreadScope_Tour/Run|Hello world]]: run ThreadScope on a small test program
   
== Basic skills ==
+
<div class="subtitle">Basic skills</div>
   
 
<ol start="3" style="list-style-type: decimal;">
 
<ol start="3" style="list-style-type: decimal;">
Line 30: Line 30:
 
<li>[[ThreadScope_Tour/Consolidate|Consolidate]]: tease out the sequential parts of code</li></ol>
 
<li>[[ThreadScope_Tour/Consolidate|Consolidate]]: tease out the sequential parts of code</li></ol>
   
== Digging into a program with spark events ==
+
<div class="subtitle">Digging into a program with spark events</div>
   
 
<ol start="8" style="list-style-type: decimal;">
 
<ol start="8" style="list-style-type: decimal;">
Line 42: Line 42:
 
</ol>
 
</ol>
   
== Reference ==
+
<div class="subtitle">Reference</div>
   
 
* [[ThreadScope_Tour/Downloads|Downloads]]: examples used in this tutorial
 
* [[ThreadScope_Tour/Downloads|Downloads]]: examples used in this tutorial

Revision as of 18:37, 9 December 2011


A guided tour of ThreadScope

ThreadScope-ch8.png

In this tutorial, we'll be working through concrete examples on using ThreadScope to debug the performance of parallel programs.

We aim to keep each module in the tutorial self-contained, so you can either follow the progression suggested or jump to just the sections we need.

Note that you will need:

  • ThreadScope 0.2.1 or higher
  • GHC 7.4 or higher. You could try earlier versions, but more advanced features such as spark events will not available

This tutorial was initially written by Well-Typed in the context of the Parallel GHC Project. Feedback would be most appreciated!

Getting started
  1. Installation: install ThreadScope and run a sample trace
  2. Hello world: run ThreadScope on a small test program
Basic skills
  1. Initial statistics: collect some simple statistics
  2. Profile: examine the profile for a real program
  3. Profile 2: examine the profile for an improved program
  4. Zoom: zooming and bookmarking
  5. Consolidate: tease out the sequential parts of code
Digging into a program with spark events
  1. Spark overview
  2. Spark rates: study spark creation/conversion
  3. Spark rates 2: spark debugging continued
Reference