2010/8/23 Vo Minh Thu <[email protected]>: > 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 _______________________________________________ Haskell-Cafe mailing list [email protected] http://www.haskell.org/mailman/listinfo/haskell-cafe
