 
            
            
            
            
                23 Aug
                
                    2010
                
            
            
                23 Aug
                
                '10
                
            
            
            
        
    
                11:41 a.m.
            
        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? Thanks, Thu
 
            
            
            
            
                23 Aug
                
            
            
                23 Aug
                
            
            
            
        
    
                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
        5548
        
      
          Age (days ago)
        
      
        5548
        
    
          Last active (days ago)
        
        
        
        1 comments
    
    
        
        1 participants
    
    
    
    
    
    
    
    
    participants (1)
- 
                 Vo Minh Thu Vo Minh Thu