• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/classes/general/debuginfo.php
  • Класс: CDebugInfo
  • Вызов: CDebugInfo::Start
public function Start()
{
	global $APPLICATION;
	global $DB;
	global $CACHE_STAT_BYTES;

	if ($this->is_comp)
	{
		self::$level++;
	}

	$this->start_time = microtime(true);
	if ($DB->ShowSqlStat)
	{
		$application = Application::getInstance();
		$connection  = $application->getConnection();
		$this->savedTracker = $application->getConnection()->getTracker();

		$connection->setTracker(null);
		$connection->startTracker();
		$DB->sqlTracker = $connection->getTracker();
	}

	if (Cache::getShowCacheStat())
	{
		$this->arCacheDebugSave = CacheTracker::getCacheTracking();
		CacheTracker::setCacheTracking([]);
		$this->cache_size = CacheTracker::getCacheStatBytes();
		CacheTracker::setCacheStatBytes($CACHE_STAT_BYTES = 0);
	}
	$this->arResult = [];
	$this->index = count($APPLICATION->arIncludeDebug);
	$APPLICATION->arIncludeDebug[$this->index] = &$this->arResult;
}