Did I find the right examples for you? yes no

All Samples(40)  |  Call(40)  |  Derive(0)  |  Import(0)
Return a list of current running PIDs.

        def get_pid_list():
    """Return a list of current running PIDs."""
    return _psplatform.get_pid_list()
        


src/n/e/newRHELic-HEAD/newrelic.py   newRHELic(Download)
            #self.metric_data['Component/System Information/Arch[string]'] = self.arch
            #self.metric_data['Component/System Information/Boot Time[datetime]'] = self._get_boottime()
            self.metric_data['Component/System Information/Process Count[process]'] = len(psutil.get_pid_list())
            self.metric_data['Component/System Information/Core Count[core]'] = psutil.NUM_CPUS
            self.metric_data['Component/System Information/Active Sessions[session]'] = len(psutil.get_users())

src/s/a/salt-HEAD/salt/modules/ps.py   salt(Download)
    result = []
    start_usage = {}
    for pid in psutil.get_pid_list():
        try:
            process = psutil.Process(pid)
        salt '*' ps.get_pid_list
    '''
    return psutil.get_pid_list()
 
 

src/s/a/salt-thin-HEAD/salt/modules/ps.py   salt-thin(Download)
    result = []
    start_usage = {}
    for pid in psutil.get_pid_list():
        try:
            process = psutil.Process(pid)
        salt '*' ps.get_pid_list
    '''
    return psutil.get_pid_list()
 
 

src/s/a/salt-2014.1.3/salt/modules/ps.py   salt(Download)
    result = []
    start_usage = {}
    for pid in psutil.get_pid_list():
        try:
            process = psutil.Process(pid)
        salt '*' ps.get_pid_list
    '''
    return psutil.get_pid_list()
 
 

src/p/y/pysysbot-0.1.3/pysysbot/pysysbot.py   pysysbot(Download)
    def processes(self, mess, args):
        """Shows the count of processes of the system."""
        processes = psutil.get_pid_list()
        return 'Running processes: %i' % (len(processes))
 

src/d/r/droned-HEAD/droned/lib/kitt/proc/psutil_backend.py   droned(Download)
        try: return [int(p) for p in os.listdir(PROC_DIR) if p.isdigit()]
        except: pass #rather be slow than blow up
    return psutil.get_pid_list()
 
#TODO

src/w/e/webfive-pyjs-HEAD/dashboard/server.py   webfive-pyjs(Download)
def process(request):
    name = request.matchdict.get('name')
    pid = [pid for pid in psutil.get_pid_list()
                       if psutil.Process(pid).name == name][0]
    if pid:

src/m/o/monistix-HEAD/agent/plugins/basic.py   monistix(Download)
 
		try:
			pids = psutil.get_pid_list()
 
			for pid in pids:

src/k/e/keysync-0.2/otrapps/util.py   keysync(Download)
    '''
    running = []
    for pid in psutil.get_pid_list():
        try:
            p = psutil.Process(pid)
    '''
    running = []
    for pid in psutil.get_pid_list():
        p = psutil.Process(pid)
        if app == p.name:

src/k/e/keysync-HEAD/otrapps/util.py   keysync(Download)
    '''
    running = []
    for pid in psutil.get_pid_list():
        try:
            p = psutil.Process(pid)
    '''
    running = []
    for pid in psutil.get_pid_list():
        p = psutil.Process(pid)
        if app == p.name:

  1 | 2 | 3  Next