Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(12)  |  Call(6)  |  Derive(0)  |  Import(6)
Read the process state ('stat') as a ProcessState object.

        def readProcessStat(pid):
    """
    Read the process state ('stat') as a ProcessState object.
    """
    stat = readProcessProc(pid, 'stat')
    return ProcessState(stat)
        


src/s/e/segvault-HEAD/fusil/ptrace/ptrace/process_tools.py   segvault(Download)
from ptrace.os_tools import RUNNING_LINUX, RUNNING_WINDOWS
if RUNNING_LINUX:
    from ptrace.linux_proc import (ProcError, openProc,
        readProcessProcList, readProcessLink, readProcessStat)
from ptrace.signames import signalName
        return
    try:
        stat = readProcessStat(pid)
    except ProcError:
        # Permission denied

src/s/e/segvault-HEAD/fusil/fusil/linux/cpu_load.py   segvault(Download)
from ptrace.linux_proc import openProc, readProcessStat, getSystemBoot, ProcError
from os import sysconf
from fusil.tools import listDiff, timedeltaSeconds, minmax
from datetime import datetime, timedelta
from time import sleep
    def __init__(self, pid):
        CpuLoadValue.__init__(self)
        stat = readProcessStat(pid)
        self.start_time = stat.starttime
        self.tics = stat.utime + stat.stime

src/p/y/python-ptrace-0.7/ptrace/process_tools.py   python-ptrace(Download)
from ptrace.os_tools import RUNNING_LINUX, RUNNING_WINDOWS
if RUNNING_LINUX:
    from ptrace.linux_proc import (ProcError, openProc,
        readProcessProcList, readProcessLink, readProcessStat)
from ptrace.signames import signalName
        return
    try:
        stat = readProcessStat(pid)
    except ProcError:
        # Permission denied

src/f/u/fusil-1.5/fusil/linux/cpu_load.py   fusil(Download)
from ptrace.linux_proc import openProc, readProcessStat, getSystemBoot, ProcError
from os import sysconf
from fusil.tools import listDiff, timedeltaSeconds, minmax
from datetime import datetime, timedelta
from time import sleep
    def __init__(self, pid):
        CpuLoadValue.__init__(self)
        stat = readProcessStat(pid)
        self.start_time = stat.starttime
        self.tics = stat.utime + stat.stime

src/s/e/segvault-HEAD/fusil/ptrace/ptrace/debugger/process.py   segvault(Download)
from ptrace.debugger.syscall_state import SyscallState
if HAS_PROC:
    from ptrace.linux_proc import readProcessStat
 
MIN_CODE_SIZE = 32
    def isTraced(self):
        if not HAS_PROC:
            self.notImplementedError()
        stat = readProcessStat(self.pid)
        return (stat.state == 'T')

src/p/y/python-ptrace-0.7/ptrace/debugger/process.py   python-ptrace(Download)
from ptrace.six import b
if HAS_PROC:
    from ptrace.linux_proc import readProcessStat
 
MIN_CODE_SIZE = 32
    def isTraced(self):
        if not HAS_PROC:
            self.notImplementedError()
        stat = readProcessStat(self.pid)
        return (stat.state == 'T')