next up previous
Next: Executing GpH on a Up: GpHLab Previous: Sequential Compilation

Sequential Profiling

  1. Take a copy of the queens.hs program in www.macs.hw.ac.uk/~trinder/ParDistr/Examples/
  2. Compile it for sequential profiling -prof -auto-all.
    /usr/bin/ghc -prof -auto-all -o queens_prof queens.hs
    
    Run the profiling version for a board size of 10 with time -pT and space -hC profiling turned on:
    queens_prof 10 +RTS -pT -hC
    
  3. Postprocess and view the time and space profiles:
    more queens_prof.prof
    hp2ps queens_prof.hp
    ghostview -orientation=seascape -scale=-2 queens_prof.ps &
    



Phil Trinder 2013-02-08