mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 02:31:03 +00:00
validate:launcher: Generate profiling data even if an exception happens
This commit is contained in:
parent
bc622ec658
commit
eda925a334
1 changed files with 4 additions and 2 deletions
|
@ -70,8 +70,10 @@ if "__main__" == __name__:
|
|||
if run_profile:
|
||||
import cProfile
|
||||
prof = cProfile.Profile()
|
||||
res = prof.runcall(main, libsdir)
|
||||
prof.dump_stats('gst-validate-launcher-runstats')
|
||||
try:
|
||||
res = prof.runcall(main, libsdir)
|
||||
finally:
|
||||
prof.dump_stats('gst-validate-launcher-runstats')
|
||||
exit(res)
|
||||
|
||||
exit(main(libsdir))
|
||||
|
|
Loading…
Reference in a new issue