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

All Samples(8)  |  Call(4)  |  Derive(0)  |  Import(4)

src/d/j/django-processinfo-0.7.0/django_processinfo/admin.py   django-processinfo(Download)
from django_processinfo.utils.human_time import timesince2, human_duration, \
    datetime2float
from django_processinfo.utils.proc_info import meminfo, uptime_infomation, \
    process_information
 
            for pid in living_pids:
                try:
                    p = dict(process_information(pid))
                except IOError: # Process dead -> mark as dead
                    process = ProcessInfo.objects.get(pid=pid)

src/d/j/django-processinfo-HEAD/django_processinfo/admin.py   django-processinfo(Download)
from django_processinfo.utils.human_time import timesince2, human_duration, \
    datetime2float
from django_processinfo.utils.proc_info import meminfo, uptime_infomation, \
    process_information
 
            for pid in living_pids:
                try:
                    p = dict(process_information(pid))
                except IOError: # Process dead -> mark as dead
                    process = ProcessInfo.objects.get(pid=pid)

src/d/j/django-processinfo-0.7.0/django_processinfo/middlewares/django_processinfo.py   django-processinfo(Download)
from django_processinfo.models import SiteStatistics, ProcessInfo
from django_processinfo.utils.average import average
from django_processinfo.utils.proc_info import process_information
 
 
            self.query_count = 0
 
        p = dict(process_information())
        self.pid = p["Pid"]
        self.threads = p["Threads"]

src/d/j/django-processinfo-HEAD/django_processinfo/middlewares/django_processinfo.py   django-processinfo(Download)
from django_processinfo.models import SiteStatistics, ProcessInfo
from django_processinfo.utils.average import average
from django_processinfo.utils.proc_info import process_information
 
 
            self.query_count = 0
 
        p = dict(process_information())
        self.pid = p["Pid"]
        self.threads = p["Threads"]