def stop():
"""
Turn off profiling.
"""
global _profile_total, _profile_start, _call_stack, _inst_data
if _profile_start is None:
return
sys.setprofile(None)
_call_stack.pop()
_profile_total += (etime() - _profile_start)
_inst_data['$total'][1] = _profile_total
_inst_data['$total'][2] += 1
_profile_start = None
评论列表
文章目录