src/Util/Memory.php
public static function getRealConsumption($mb = true)
    {
        $mem = memory_get_usage(true);
        if ($mb === true) {
            $mem = round($mem/self::MB_DIVIDER, 2);
        }

        return $mem;
    }
public static function getRealConsumption($mb = true)
    {
        $mem = memory_get_usage(true);
        if ($mb === true) {
            $mem = round($mem/self::MB_DIVIDER, 2);
        }

        return $mem;
    }
public static function getRealConsumption ( $ mb = true ) { $ mem = memory_get_usage ( true ) ; if ( $ mb === true ) { $ mem = round ( $ mem / self :: MB_DIVIDER , 2 ) ; } return $ mem ; }
Returns the runtime memory consumption for the whole PHP

@param bool $mb (if true the memory consumption is returned in megabytes)
@return float|int
Returns the runtime memory consumption for the whole PHP