
16 Jun
2008
16 Jun
'08
4:11 a.m.
2008/6/16 Pieter Laeremans
Hi,
Which tools do you recommand for memory profiling haskell programs on a *nix system. I'm using haskell to develop a CGI program/script.
The application has to be deployed on shared hosting infrastructure. Since I would like to be a good citizen , I would need to meassure the maximum amount of memory allocated to the program during execution. The best I can do now is look at top but that 's not satisfactory.
Are you aware that by calling the program with the correct RTS options you can have memory profiling ? http://www.haskell.org/ghc/docs/latest/html/users_guide/runtime-control.html (see option -s for simple statistics) http://www.haskell.org/ghc/docs/latest/html/users_guide/prof-heap.html -- Jedaï