|
|
@ -364,6 +364,14 @@ class CallbackModule(CallbackBase):
|
|
|
|
def _profile(self, obj=None):
|
|
|
|
def _profile(self, obj=None):
|
|
|
|
prev_task = None
|
|
|
|
prev_task = None
|
|
|
|
results = dict.fromkeys(self._features)
|
|
|
|
results = dict.fromkeys(self._features)
|
|
|
|
|
|
|
|
for dummy, f in self._files.items():
|
|
|
|
|
|
|
|
if f is None:
|
|
|
|
|
|
|
|
continue
|
|
|
|
|
|
|
|
try:
|
|
|
|
|
|
|
|
f.close()
|
|
|
|
|
|
|
|
except Exception:
|
|
|
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
for name, prof in self._profilers.items():
|
|
|
|
for name, prof in self._profilers.items():
|
|
|
|
prof.running = False
|
|
|
|
prof.running = False
|
|
|
@ -397,12 +405,6 @@ class CallbackModule(CallbackBase):
|
|
|
|
def v2_playbook_on_stats(self, stats):
|
|
|
|
def v2_playbook_on_stats(self, stats):
|
|
|
|
self._profile()
|
|
|
|
self._profile()
|
|
|
|
|
|
|
|
|
|
|
|
for dummy, f in self._files.items():
|
|
|
|
|
|
|
|
try:
|
|
|
|
|
|
|
|
f.close()
|
|
|
|
|
|
|
|
except Exception:
|
|
|
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if not self._display_recap:
|
|
|
|
if not self._display_recap:
|
|
|
|
return
|
|
|
|
return
|
|
|
|
|
|
|
|
|
|
|
|