mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +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,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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue