• Модуль: perfmon
  • Путь к файлу: ~/bitrix/modules/perfmon/classes/general/keeper.php
  • Класс: CPerfomanceKeeper
  • Вызов: CPerfomanceKeeper::setDebugModeOn
static function setDebugModeOn()
{
	global $DB, $APPLICATION;

	define("PERFMON_STARTED", $DB->ShowSqlStat."|".BitrixMainDataCache::getShowCacheStat()."|".$APPLICATION->ShowIncludeStat);

	$DB->ShowSqlStat = true;
	$application = BitrixMainHttpApplication::getInstance();
	$application->getConnection()->startTracker();

	BitrixMainDataCache::setShowCacheStat(COption::GetOptionString("perfmon", "cache_log") === "Y");
	$APPLICATION->ShowIncludeStat = true;
}