Ejemplo n.º 1
0
 def get_process_threads(self):
     """Return the number of threads belonging to the process."""
     rawlist = _psutil_osx.get_process_threads(self.pid)
     retlist = []
     for thread_id, utime, stime in rawlist:
         ntuple = nt_thread(thread_id, utime, stime)
         retlist.append(ntuple)
     return retlist
Ejemplo n.º 2
0
 def get_process_threads(self):
     """Return the number of threads belonging to the process."""
     rawlist = _psutil_osx.get_process_threads(self.pid)
     retlist = []
     for thread_id, utime, stime in rawlist:
         ntuple = nt_thread(thread_id, utime, stime)
         retlist.append(ntuple)
     return retlist