static public function traceMemory($context=null)
    {
        $caller = static::getCaller();
        $memory_usage = memory_get_usage();
        $message = sprintf('%30s::%-15s: %s', $caller['class'], $caller['function'], $memory_usage);
        if ($context) {
            $message .= ' ' . print_r($context, true);
        }
        
        Ioc::logger('trace')->debug(sprintf('[%s]%s', 'memory', $message));
    }
static public function traceMemory($context=null)
    {
        $caller = static::getCaller();
        $memory_usage = memory_get_usage();
        $message = sprintf('%30s::%-15s: %s', $caller['class'], $caller['function'], $memory_usage);
        if ($context) {
            $message .= ' ' . print_r($context, true);
        }
        
        Ioc::logger('trace')->debug(sprintf('[%s]%s', 'memory', $message));
    }
static public function traceMemory ( $ context = null ) { $ caller = static :: getCaller ( ) ; $ memory_usage = memory_get_usage ( ) ; $ message = sprintf ( '%30s::%-15s: %s' , $ caller [ 'class' ] , $ caller [ 'function' ] , $ memory_usage ) ; if ( $ context ) { $ message .= ' ' . print_r ( $ context , true ) ; } Ioc :: logger ( 'trace' ) -> debug ( sprintf ( '[%s]%s' , 'memory' , $ message ) ) ; }
trace memory usage
@return void
trace memory usage