[Haskell-cafe] Re: empty .prof file

Vo Minh Thu noteed at gmail.com
Mon Aug 23 11:54:20 EDT 2010


2010/8/23 Vo Minh Thu <noteed at gmail.com>:
> Hi,
>
> I'd like to profile a GLUT application. After a run of the application
> with the +RTS -p flag, the .prof file is actually created but is
> always empty.
>
> Does someone have a clue of what's going on? Would it be related to my
> application calling GLUT's leaveMainLoop to exit?

Yes, the problem is the default behavior of leaveMainLoop. Setting

   actionOnWindowClose $= MainLoopReturns

does the trick.

Cheers,
Thu


More information about the Haskell-Cafe mailing list