[Scons-dev] profiling eats exit
    Tom Tanner (BLOOMBERG/ LONDON) 
    ttanner2 at bloomberg.net
       
    Tue Oct  2 06:19:35 EDT 2012
    
    
  
I've noticed if you do Exit(1) when profiling is switched on, it eats the exit status.
Having had a look at the code, theres a block which catches SystemExit and eats it. Wouldn't it be better just to do
   try:
      prof.runcall(_main, parser)
   finally:
      prof.dump_stats(options.profile_file)
and get the stats no matter how you exited?
    
    
More information about the Scons-dev
mailing list