for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Created by PhpStorm.
* User: Petrica
* Date: 3/24/2016
* Time: 1:17
*/
namespace Petrica\StatsdSystem\Gauge;
class MemoryUsedGauge extends AbstractMemoryGauge
{
* {@inheritdoc}
public function getPath()
return 'memory.used.value';
}
public function getValue()
$info = $this->getSystemMemoryInfo();
if (isset($info['MemFree'])
&& isset($info['MemTotal'])) {
return $info['MemTotal'] - $info['MemFree'];
return false;