mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Write snapshot even in case of sys.exit(0) (PY-15905)
This commit is contained in:
@@ -81,10 +81,11 @@ class Profiler(object):
|
||||
|
||||
self.start_profiling()
|
||||
|
||||
pydev_imports.execfile(file, globals, globals) # execute the script
|
||||
|
||||
self.stop_profiling()
|
||||
self.save_snapshot(0, generate_snapshot_filepath(base_snapshot_path, remote_run), remote_run)
|
||||
try:
|
||||
pydev_imports.execfile(file, globals, globals) # execute the script
|
||||
finally:
|
||||
self.stop_profiling()
|
||||
self.save_snapshot(0, generate_snapshot_filepath(base_snapshot_path, remote_run), remote_run)
|
||||
|
||||
def start_profiling(self):
|
||||
self.profiling_backend.enable()
|
||||
|
||||
Reference in New Issue
Block a user