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

This commit is contained in:
zero 2007-05-16 05:47:04 +00:00
parent 1b727a32a1
commit b4ed25f564
4 changed files with 30 additions and 34 deletions

View file

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

View file

@ -19,7 +19,7 @@
* @brief TemplateHandler의 기생성된 객체를 return
**/
function &getInstance() {
if(__DEBUG__==3) {
if(__DEBUG__==3 && !defined('__STOP_DEBUG__')) {
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) $start = getMicroTime();
if(__DEBUG__==3 && !defined('__STOP_DEBUG__') ) $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) $GLOBALS['__template_elapsed__'] += getMicroTime() - $start;
if(__DEBUG__==3 && !defined('__STOP_DEBUG__')) $GLOBALS['__template_elapsed__'] += getMicroTime() - $start;
return $output;
}