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?
_______________________________________________
Scons-dev mailing list
[email protected]
http://two.pairlist.net/mailman/listinfo/scons-dev
