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:
|
if run_profile:
|
||||||
import cProfile
|
import cProfile
|
||||||
prof = cProfile.Profile()
|
prof = cProfile.Profile()
|
||||||
res = prof.runcall(main, libsdir)
|
try:
|
||||||
prof.dump_stats('gst-validate-launcher-runstats')
|
res = prof.runcall(main, libsdir)
|
||||||
|
finally:
|
||||||
|
prof.dump_stats('gst-validate-launcher-runstats')
|
||||||
exit(res)
|
exit(res)
|
||||||
|
|
||||||
exit(main(libsdir))
|
exit(main(libsdir))
|
||||||
|
|
Loading…
Reference in a new issue