def snapshot_profile():
 with _profile_lock:
  merge_profile()
  return copy.deepcopy(_cumulative_profile)

def snapshot_profile ( ) : with _profile_lock : merge_profile ( ) return copy . deepcopy ( _cumulative_profile )
returns the cumulative execution profile until this call .