CI_Profiler::_compile_memory_usage PHP 메소드

_compile_memory_usage() 보호된 메소드

Display total used memory
protected _compile_memory_usage ( ) : string
리턴 string
    protected function _compile_memory_usage()
    {
        if (function_exists('memory_get_usage') && ($usage = memory_get_usage()) != '') {
            $output = number_format($usage) . ' bytes';
        } else {
            $output = $this->CI->lang->line('profiler_no_memory_usage');
        }
        return $output;
    }

Usage Example

예제 #1
0
 protected function _compile_memory_usage()
 {
     return $this->get_file_size(parent::_compile_memory_usage());
 }