Did I find the right examples for you? yes no

All Samples(33)  |  Call(31)  |  Derive(0)  |  Import(2)
Return the amount of total, used and free physical memory
on the system in bytes plus the percentage usage.
Deprecated by psutil.virtual_memory().

                @wraps(fun)
        def inner(*args, **kwargs):
            warnings.warn(msg, category=DeprecationWarning, stacklevel=2)
            return fun(*args, **kwargs)
        


src/p/y/pyriemann-HEAD/examples/riemann_health.py   pyriemann(Download)
def memory(warning = 0.85, critical=0.95):
    pm = psutil.phymem_usage()
    vm = psutil.virtmem_usage()
    sf = sv = "ok"
    ff = pm.percent / 100.0

src/p/c/pcd8544-HEAD/examples/sys_info.py   pcd8544(Download)
def mem_usage():
    usage = psutil.phymem_usage()
    return "Mem: %s %.0f%%" \
            % (bytes2human(usage.used), 100 - usage.percent)  
 

src/r/a/raspi-hd44780-HEAD/examples/stats.py   raspi-hd44780(Download)
from hd44780 import HD44780
from socket import gethostname, gethostbyname_ex
from psutil import cpu_percent, phymem_usage
from time import sleep
 
    sleep(2)
    cpu = round(cpu_percent(),0)
    mem = round(phymem_usage()[3],0)
    ip = [ip for ip in gethostbyname_ex(gethostname())[2] if not ip.startswith("127.")][:1][0]
    lcd.clear()

src/p/y/pyjip-0.5/jip/profiler.py   pyjip(Download)
            io = psutil.disk_io_counters()
            netio = psutil.net_io_counters()
            box_mem = psutil.phymem_usage()
            box_data = [
                box_cpu.user,

src/b/a/baruwa-2.0.1/baruwa/tasks/status.py   baruwa(Download)
    pipe.wait(timeout=2)
    stats['uptime'] = "%s %s" % (upt[2], upt[3].rstrip(','))
    stats['mem'] = _obj2dict(psutil.phymem_usage())
    stats['cpu'] = psutil.cpu_percent()
    stats['load'] = os.getloadavg()

src/g/l/Glances-1.7.6/glances/glances.py   Glances(Download)
            # RAM
            if hasattr(psutil, 'phymem_usage'):
                phymem = psutil.phymem_usage()
 
                # buffers and cached (Linux, BSD)

src/s/l/slapos.core-HEAD/slapos/collect/snapshot.py   slapos.core(Download)
  def __init__(self):
    memory = psutil.phymem_usage()
    net_io = psutil.net_io_counters()
 
    self.memory_used = memory.used

src/g/l/glances-HEAD/glances/glances.py   glances(Download)
            # RAM
            if hasattr(psutil, 'phymem_usage'):
                phymem = psutil.phymem_usage()
 
                # buffers and cached (Linux, BSD)

src/p/g/pg_activity-HEAD/pgactivity/Data.py   pg_activity(Download)
        except AttributeError:
            # psutil > 0.4.0 and < 0.6.0
            phymem = psutil.phymem_usage()
            buffers = getattr(psutil, 'phymem_buffers', lambda: 0)()
            cached = getattr(psutil, 'cached_phymem', lambda: 0)()

src/h/i/hiveary-agent-1.4.0/monitors/resources.py   hiveary-agent(Download)
    network_io = psutil.network_io_counters()
    time_diff = now - self.last_check
    ram_usage = psutil.phymem_usage()
    disk_usage = {}
    for disk in self.disks:

  1 | 2 | 3  Next