code: def _StopMonitoringProcesses(self):
      
      # We need to make a copy of the list of pids since we are changing
      # the dict in the loop.
      for pid in list(self._process_information_per_pid.keys()):
        self._RaiseIfNotRegistered(pid)
        process = self._processes_per_pid[pid]
  
        self._StopMonitoringProcess(process)
docs: Stops monitoring all processes.