validate:launcher: Generate profiling data even if an exception happens

This commit is contained in:
Thibault Saunier 2020-01-08 09:23:19 -03:00
parent bc622ec658
commit eda925a334

View file

@ -70,7 +70,9 @@ if "__main__" == __name__:
if run_profile: if run_profile:
import cProfile import cProfile
prof = cProfile.Profile() prof = cProfile.Profile()
try:
res = prof.runcall(main, libsdir) res = prof.runcall(main, libsdir)
finally:
prof.dump_stats('gst-validate-launcher-runstats') prof.dump_stats('gst-validate-launcher-runstats')
exit(res) exit(res)