2011-02-11 3 views
0

사용자 정의 데이터를 CI 프로파일 러에 출력 할 수 있습니까? CodeIgniter가 프로파일 러에 출력

나는
$this->output->append_output($var); 

을 시도하지만 페이지의 상단에 나타나는이, 에코와 비슷한 것 같다.

나머지 프로파일 정보와 함께 표시 할 수있는 방법이 있습니까?

class MY_Profiler extends CI_Profiler { 

    function _do_stuff() { 
     //do stuff 
    } 

    //In the run method add your method 
    function run() { 
     $this->_do_stuff(); 
    } 

} 

이 내 블로그에서 무언가는 다음과 같습니다 :

답변

0

당신은 당신이

1.Add이 표시하려는 섹션을 설정할 수있는 방법은 두 가지가 있습니다 당신이 프로파일 링하고자하는 컨트롤러 방법 :

$sections = array(
'config' => TRUE, 
'queries' => TRUE 
); 

$this->output->set_profiler_sections($sections); 
$this->output->enable_profiler(TRUE); 

2.In 응용 프로그램/설정/profiler.php 세트 애플리케이션 넓은 기본값 :

여기
$config['config'] = FALSE; 
$config['queries'] = FALSE; 

가능한 모든 섹션의 목록입니다 (이 시스템/라이브러리/profiler.php에서 찾을 수 있습니다 그런데

'benchmarks', 
'get', 
'memory_usage', 
'post', 
'uri_string', 
'controller_info', 
'queries', 
'http_headers', 
'session_data', 
'config' 
관련 문제