src/Tao/Utilities.php
public function getMemoryUsageData()
	{
		if (null === $this->memoryUsageData)
		{
			$memoryUsage = memory_get_usage();

			$unit = ['B', 'KB', 'MB', 'GB', 'TB', 'PB'];

			$this->memoryUsageData = [
				round($memoryUsage/pow(1024, ($i=floor(log($memoryUsage, 1024))) ), 2),
				$unit[$i]
			];
		}

		return $this->memoryUsageData;
	}
public function getMemoryUsageData()
	{
		if (null === $this->memoryUsageData)
		{
			$memoryUsage = memory_get_usage();

			$unit = ['B', 'KB', 'MB', 'GB', 'TB', 'PB'];

			$this->memoryUsageData = [
				round($memoryUsage/pow(1024, ($i=floor(log($memoryUsage, 1024))) ), 2),
				$unit[$i]
			];
		}

		return $this->memoryUsageData;
	}
public function getMemoryUsageData ( ) { if ( null === $ this -> memoryUsageData ) { $ memoryUsage = memory_get_usage ( ) ; $ unit = [ 'B' , 'KB' , 'MB' , 'GB' , 'TB' , 'PB' ] ; $ this -> memoryUsageData = [ round ( $ memoryUsage / pow ( 1024 , ( $ i = floor ( log ( $ memoryUsage , 1024 ) ) ) ) , 2 ) , $ unit [ $ i ] ] ; } return $ this -> memoryUsageData ; }
Return the application memory usage data.

@return array
Return the application memory usage data .