Exemple #1
0
 def threads(self):
     rawlist = cext.proc_threads(self.pid)
     retlist = []
     for thread_id, utime, stime in rawlist:
         ntuple = _common.pthread(thread_id, utime, stime)
         retlist.append(ntuple)
     return retlist
Exemple #2
0
 def threads(self):
     rawlist = cext.proc_threads(self.pid)
     retlist = []
     for thread_id, utime, stime in rawlist:
         ntuple = _common.pthread(thread_id, utime, stime)
         retlist.append(ntuple)
     return retlist
Exemple #3
0
 def threads(self):
     """Return the number of threads belonging to the process."""
     rawlist = cext.proc_threads(self.pid)
     retlist = []
     for thread_id, utime, stime in rawlist:
         ntuple = _common.pthread(thread_id, utime, stime)
         retlist.append(ntuple)
     return retlist