code/libraries/joomlatools/library/event/publisher/profiler.php
public function getMemoryUsage()
    {
        $size = memory_get_usage(true);
        $unit = array('b','kb','mb','gb','tb','pb');
                
        return @round($size/pow(1024,($i=floor(log($size,1024)))),2).' '.$unit[$i];
    }
public function getMemoryUsage()
    {
        $size = memory_get_usage(true);
        $unit = array('b','kb','mb','gb','tb','pb');
                
        return @round($size/pow(1024,($i=floor(log($size,1024)))),2).' '.$unit[$i];
    }
public function getMemoryUsage ( ) { $ size = memory_get_usage ( true ) ; $ unit = array ( 'b' , 'kb' , 'mb' , 'gb' , 'tb' , 'pb' ) ; return @ round ( $ size / pow ( 1024 , ( $ i = floor ( log ( $ size , 1024 ) ) ) ) , 2 ) . ' ' . $ unit [ $ i ] ; }
Get information about current memory usage.

@return int The memory usage
@link PHP_MANUAL#memory_get_usage
Get information about current memory usage .