Changes between Version 2 and Version 3 of Development/Profiling

Show
Ignore:
Timestamp:
02/27/10 08:20:46 (5 years ago)
Author:
erikd (IP: 203.206.230.162)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Development/Profiling

    v2 v3  
    11== Memory and CPU Usage Profiling == 
     2 
     3Much of the information on this page was gleaned from  
     4[http://book.realworldhaskell.org/read/profiling-and-optimization.html Chapter 25] of [http://book.realworldhaskell.org/read/ Real World Haskell]. 
    25 
    36I (Erik) keep a separate branch specifically set up for profiling. That branch was just forked off a local `ddc-head` branch using: 
     
    1013 
    1114{{{ 
    12 echo "BUILDFLAVOUR     = devel_prof" > make/config-override.deps 
     15echo "BUILDFLAVOUR = devel_prof" > make/config-override.deps 
    1316}}} 
    1417 
     18The compiler can now be built using the `make` command. 
     19 
     20Once we have the profiling version of the compiler built is a matter of running it on something appropriate. I usually choose the test program in `test/90-Programs/Rover` and run is as: 
     21 
     22{{{ 
     23bin/ddc +RTS -hc -p -K100M -RTS --make test/90-Programs/Rover/Main.ds 
     24}}} 
     25 
     26This generates a profile output file named `` which can be converted into a profile graph using: 
     27 
     28{{{ 
     29hp2ps -c ddc.hp 
     30}}}