예제 #1
0
파일: _psosx.py 프로젝트: dangpu/momoko
 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
예제 #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
예제 #3
0
파일: _psosx.py 프로젝트: ztop/psutil
 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