Changes between Version 2 and Version 3 of Development/Profiling
- Timestamp:
- 02/27/10 08:20:46 (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Development/Profiling
v2 v3 1 1 == Memory and CPU Usage Profiling == 2 3 Much 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]. 2 5 3 6 I (Erik) keep a separate branch specifically set up for profiling. That branch was just forked off a local `ddc-head` branch using: … … 10 13 11 14 {{{ 12 echo "BUILDFLAVOUR = devel_prof"> make/config-override.deps15 echo "BUILDFLAVOUR = devel_prof" > make/config-override.deps 13 16 }}} 14 17 18 The compiler can now be built using the `make` command. 19 20 Once 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 {{{ 23 bin/ddc +RTS -hc -p -K100M -RTS --make test/90-Programs/Rover/Main.ds 24 }}} 25 26 This generates a profile output file named `` which can be converted into a profile graph using: 27 28 {{{ 29 hp2ps -c ddc.hp 30 }}}
