parameters: ()
docstring: Reads sys.getdxp() and merges it into this module's cached copy.
  
      We need this because sys.getdxp() 0s itself every time it's called.
docstring_summary: Reads sys.getdxp() and merges it into this module's cached copy.
docstring_tokens: Reads sys . getdxp () and merges it into this module s cached copy .
function: def merge_profile():
      """Reads sys.getdxp() and merges it into this module's cached copy.
  
      We need this because sys.getdxp() 0s itself every time it's called."""
  
      with _profile_lock:
          new_profile = sys.getdxp()
          if has_pairs(new_profile):
              for first_inst in range(len(_cumulative_profile)):
                  for second_inst in range(len(_cumulative_profile[first_inst])):
                      _cumulative_profile[first_inst][second_inst] += (
                          new_profile[first_inst][second_inst])
          else:
              for inst in range(len(_cumulative_profile)):
                  _cumulative_profile[inst] += new_profile[inst]
function_tokens: def merge_profile ( ) : with _profile_lock : new_profile = sys . getdxp ( ) if has_pairs ( new_profile ) : for first_inst in range ( len ( _cumulative_profile ) ) : for second_inst in range ( len ( _cumulative_profile [ first_inst ] ) ) : _cumulative_profile [ first_inst ] [ second_inst ] += ( new_profile [ first_inst ] [ second_inst ] ) else : for inst in range ( len ( _cumulative_profile ) ) : _cumulative_profile [ inst ] += new_profile [ inst ]