Did I find the right examples for you? yes no

All Samples(427)  |  Call(403)  |  Derive(4)  |  Import(20)
Represents an OS process.

src/p/s/psutil-2.1.1/examples/process_detail.py   psutil(Download)
def run(pid):
    ACCESS_DENIED = ''
    try:
        p = psutil.Process(pid)
        pinfo = p.as_dict(ad_value=ACCESS_DENIED)

src/p/s/psutil-2.1.1/examples/pmap.py   psutil(Download)
def main():
    if len(sys.argv) != 2:
        sys.exit('usage: pmap <pid>')
    p = psutil.Process(int(sys.argv[1]))
    print_("pid=%s, name=%s" % (p.pid, p.name()))

src/p/s/psutil-HEAD/examples/process_detail.py   psutil(Download)
def run(pid):
    ACCESS_DENIED = ''
    try:
        p = psutil.Process(pid)
        pinfo = p.as_dict(ad_value=ACCESS_DENIED)

src/p/s/psutil-HEAD/examples/pmap.py   psutil(Download)
def main():
    if len(sys.argv) != 2:
        sys.exit('usage: pmap pid')
    p = psutil.Process(int(sys.argv[1]))
    print_("pid=%s, name=%s" % (p.pid, p.name))

src/k/t/ktbs-HEAD/examples/browser-history/firefox/processinfo.py   ktbs(Download)
 
        # Crée l'objet psutil
        self.p = psutil.Process(pid)
        self.pid = self.p.pid
 

src/a/u/AutobahnPython-HEAD/examples/twisted/websocket/echo_multicore/server.py   AutobahnPython(Download)
 
   if not options.noaffinity:
      p = psutil.Process(workerPid)
      print "affinity [before]", p.get_cpu_affinity()
      p.set_cpu_affinity([options.cpuid])

src/b/e/berkeley-HEAD/python_email/simulation_example/main.py   berkeley(Download)
 
# Do some logging of the simulation while it's running
proc_monitor = psutil.Process(spawner.pid)
time.sleep(1)	# This is a hack to ensure the child process has been spawned by
	        # Popen
while proc_monitor.status() != 'zombie':
  try:
    p = psutil.Process(spawner.pid+1)
    cpu_percent.append(p.cpu_percent(1.0))
    mem_percent.append(p.memory_percent())

src/p/i/pikos-HEAD/examples/leaky.py   pikos(Download)
 
if __name__ == '__main__':
    proc = psutil.Process(os.getpid())
    print proc.get_memory_info()
    leaker = Leaker(1000, (5000, 1000))

src/p/i/pikos-HEAD/examples/cprofile.py   pikos(Download)
 
if __name__ == '__main__':
    proc = psutil.Process(os.getpid())
    leaker = Leaker(100, (1000, 1000))
    leaker.run_leaky()

src/l/i/lillebror-0.2.6/lillebror/samplers.py   lillebror(Download)
        self._process = None
        try:
            self._process = psutil.Process(self._pid)
        except psutil.NoSuchProcess:
            return

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next