protected function outputMemoryUsage()
    {
        $memory = memory_get_usage(true);

        $unit = array('B', 'KB', 'MB', 'GB', 'TB', 'PB');
        $memory = round($memory / pow(1024, ($i = floor(log($memory, 1024)))), 2) . ' ' . $unit[$i];

        $this->output('Memory usage: ' . $memory, self::OUTPUT_COMMENT);
    }
protected function outputMemoryUsage()
    {
        $memory = memory_get_usage(true);

        $unit = array('B', 'KB', 'MB', 'GB', 'TB', 'PB');
        $memory = round($memory / pow(1024, ($i = floor(log($memory, 1024)))), 2) . ' ' . $unit[$i];

        $this->output('Memory usage: ' . $memory, self::OUTPUT_COMMENT);
    }
protected function outputMemoryUsage ( ) { $ memory = memory_get_usage ( true ) ; $ unit = array ( 'B' , 'KB' , 'MB' , 'GB' , 'TB' , 'PB' ) ; $ memory = round ( $ memory / pow ( 1024 , ( $ i = floor ( log ( $ memory , 1024 ) ) ) ) , 2 ) . ' ' . $ unit [ $ i ] ; $ this -> output ( 'Memory usage: ' . $ memory , self :: OUTPUT_COMMENT ) ; }
Outputs the current memory usage

@see http://de3.php.net/manual/de/function.memory-get-usage.php#96280

@return void
Outputs the current memory usage