<div dir="ltr">You can add an extra route which, when called, exits the program. I haven&#39;t tried it myself*, but I think it should work.<div><br></div><div>Michael</div><div><br></div><div>* OK, I think I might have done it once a while ago, but I&#39;m not sure.<br>

<br><div class="gmail_quote">On Tue, Apr 5, 2011 at 11:52 PM, Aur Saraf <span dir="ltr">&lt;<a href="mailto:sonoflilit@gmail.com" target="_blank">sonoflilit@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
I&#39;m trying to profile a yesod app, and it seems like Haskell&#39;s<br>
profiler only writes to file when the program exists. Gracefully. So<br>
Ctrl+C twice is out of the question.<br>
<br>
<br>
What I&#39;m doing:<br>
<br>
$ ~/Downloads/spawn-fcgi-1.6.3/src/spawn-fcgi -n -s /tmp/f.socket --<br>
~/projects/f/dist/build/fastcgi/fastcgi +RTS -p<br>
<br>
Then I enter a page that I want to profile.<br>
<br>
Then my system starts swapping because the page takes 100% RAM (I&#39;m<br>
suspecting a space leak).<br>
<br>
Then I hit Ctrl+C Ctrl+C to quit the yesod program.<br>
<br>
Then I look at fastcgi.prof, and find it empty.<br>
<br>
<br>
How can I get profiling info to be written to file? Am I wrong in<br>
something I&#39;m doing?<br>
<br>
<br>
Thanks,<br>
 Aur<br>
<br>
_______________________________________________<br>
web-devel mailing list<br>
<a href="mailto:web-devel@haskell.org" target="_blank">web-devel@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/web-devel" target="_blank">http://www.haskell.org/mailman/listinfo/web-devel</a><br>
</blockquote></div><br></div></div>