[web-devel] Quitting Yesod
michael at snoyman.com
Wed Apr 6 06:51:15 CEST 2011
You can add an extra route which, when called, exits the program. I haven't
tried it myself*, but I think it should work.
* OK, I think I might have done it once a while ago, but I'm not sure.
On Tue, Apr 5, 2011 at 11:52 PM, Aur Saraf <sonoflilit at gmail.com> wrote:
> I'm trying to profile a yesod app, and it seems like Haskell's
> profiler only writes to file when the program exists. Gracefully. So
> Ctrl+C twice is out of the question.
> What I'm doing:
> $ ~/Downloads/spawn-fcgi-1.6.3/src/spawn-fcgi -n -s /tmp/f.socket --
> ~/projects/f/dist/build/fastcgi/fastcgi +RTS -p
> Then I enter a page that I want to profile.
> Then my system starts swapping because the page takes 100% RAM (I'm
> suspecting a space leak).
> Then I hit Ctrl+C Ctrl+C to quit the yesod program.
> Then I look at fastcgi.prof, and find it empty.
> How can I get profiling info to be written to file? Am I wrong in
> something I'm doing?
> web-devel mailing list
> web-devel at haskell.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the web-devel