Did I find the right examples for you? yes no

All Samples(9)  |  Call(9)  |  Derive(0)  |  Import(0)

src/m/y/MySQL-performance-tuner-HEAD/plugins/plugin_system_query.py   MySQL-performance-tuner(Download)
    def generate(self, **kwargs):
        result = { 'mem_phys_total': psutil.TOTAL_PHYMEM,
                   'mem_phys_avail': psutil.avail_phymem(),
                   'mem_phys_used' : psutil.used_phymem(),
                   'mem_virt_total': psutil.total_virtmem(),

src/z/a/zabbix-agent-ng-HEAD/zbx_vm.py   zabbix-agent-ng(Download)
def main(expr):
    vars = {'free': psutil.avail_virtmem(),
            'available': psutil.avail_virtmem(),
            'pfree': psutil.avail_phymem(),
            'buffers': psutil.phymem_buffers(),

src/e/l/elastica-HEAD/elastica/messaging.py   elastica(Download)
    def value(self):
        return ("mem", psutil.avail_phymem()/1000000)
        #return ("load", int(time.time()))
 
    def generation(self):

src/t/h/thingspeak-HEAD/thingspeak_cpu_loop.py   thingspeak(Download)
def doit():
	cpu_pc = psutil.cpu_percent()
	mem_avail_mb = psutil.avail_phymem()/1000000	
	params = urllib.urlencode({'field1': cpu_pc, 'field2': mem_avail_mb,'key':'YOURKEYHERE'})
	headers = {"Content-type": "application/x-www-form-urlencoded","Accept": "text/plain"}

src/t/h/thingspeak-HEAD/log.py   thingspeak(Download)
 
cpu_pc = psutil.cpu_percent()
mem_avail_mb = psutil.avail_phymem()/1000000	
params = urllib.urlencode({'field1': cpu_pc, 'field2': mem_avail_mb,'key':'YOURKEYHERE'})
headers = {"Content-type": "application/x-www-form-urlencoded","Accept": "text/plain"}

src/n/u/nupic-HEAD/py/nupic/data/sorter.py   nupic(Download)
 
      # Check memory
      available_memory = psutil.avail_phymem()
 
      # If bellow the watermark create a new chunk, reset and keep going
  # multiple chunk files in the big testcase
 
  mem = psutil.avail_phymem()
  watermark = mem - 300 * 1024 * 1024
 
  ]
 
  mem = psutil.avail_phymem()
  watermark = mem - 300 * 1024 * 1024
  print 'Test sorting by f2 and f1, watermark:', watermark
  ]
 
  mem = psutil.avail_phymem()
  watermark = mem - 300 * 1024 * 1024
  print 'Test sorting by f3 and f2, watermark:', watermark