 
            
            
            
            
                23 Aug
                
                    2010
                
            
            
                23 Aug
                
                '10
                
            
            
            
        
    
                11:54 a.m.
            
        2010/8/23 Vo Minh Thu 
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