git-svn-id: http://xe-core.googlecode.com/svn/trunk@1612 201d5d3c-b55e-5fd7-737f-ddc643e51545

This commit is contained in:
zero 2007-06-12 09:28:51 +00:00
parent 4556470a9e
commit 7894c0b0ca
15 changed files with 45 additions and 21 deletions

View file

@ -118,14 +118,14 @@
* @brief 로그 남김
**/
function actStart($query) {
if(__DEBUG__ < 2 && !defined('__STOP_DEBUG__')) return;
if(__DEBUG__ < 2) return;
$this->setError(0,'success');
$this->query = $query;
$this->act_start = getMicroTime();
}
function actFinish() {
if(__DEBUG__ < 2 || !$this->query || defined('__STOP_DEBUG__')) return;
if(__DEBUG__ < 2 || !$this->query ) return;
$this->act_finish = getMicroTime();
$elapsed_time = $this->act_finish - $this->act_start;
$GLOBALS['__db_elapsed_time__'] += $elapsed_time;

View file

@ -156,7 +156,7 @@
* tail -f ./files/_debug_message.php로 하여 console로 확인하면 편리함\n
**/
function _debugOutput() {
if(!__DEBUG__ || Context::getResponseMethod()!='HTML') return;
if(!__DEBUG__ || (__DEBUG_OUTPUT!=0 && Context::getResponseMethod()!='HTML') ) return;
$end = getMicroTime();
// debug string 작성 시작

View file

@ -19,7 +19,7 @@
* @brief TemplateHandler의 기생성된 객체를 return
**/
function &getInstance() {
if(__DEBUG__==3 && !defined('__STOP_DEBUG__')) {
if(__DEBUG__==3 ) {
if(!isset($GLOBALS['__TemplateHandlerCalled__'])) $GLOBALS['__TemplateHandlerCalled__']=1;
else $GLOBALS['__TemplateHandlerCalled__']++;
}
@ -35,7 +35,7 @@
**/
function compile($tpl_path, $tpl_filename, $tpl_file = '') {
// 디버그를 위한 컴파일 시작 시간 저장
if(__DEBUG__==3 && !defined('__STOP_DEBUG__') ) $start = getMicroTime();
if(__DEBUG__==3 ) $start = getMicroTime();
// 변수 체크
$tpl_path = ereg_replace('(\/+)$', '', $tpl_path).'/';
@ -59,7 +59,7 @@
// Context와 compiled_tpl_file로 컨텐츠 생성
$output = $this->_fetch($compiled_tpl_file, $buff);
if(__DEBUG__==3 && !defined('__STOP_DEBUG__')) $GLOBALS['__template_elapsed__'] += getMicroTime() - $start;
if(__DEBUG__==3 ) $GLOBALS['__template_elapsed__'] += getMicroTime() - $start;
return $output;
}