code: def stop(self):
          
          if not self.is_alive():
              return
  
          self._shutdown_event.set()
          self.join()
  
          itm = self._session.target.get_first_child_of_type(ITM)
          itm.disable()
          
          self._session.target.trace_stop()
docs: ! @brief Stops processing SWV data.
          
          The reader thread is terminated first, then the ITM is disabled. The last step is to call
          the target's trace_stop() method.
          
          Does nothing if the init() method did not complete successfully.