Last active
August 29, 2015 14:21
-
-
Save shoman4eg/8d7835236abccc6068fa to your computer and use it in GitHub Desktop.
Bitrix Sql Tracker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$GLOBALS["DB"]->ShowSqlStat = true; | |
$application = \Bitrix\Main\Application::getInstance(); | |
$connection = $application->getConnection(); | |
$connection->startTracker(); | |
$sqlTracker = $connection->getTracker(); | |
?> | |
Какой то код c sql запросами | |
<? var_dump($sqlTracker->getQueries()); | |
$GLOBALS["DB"]->ShowSqlStat = false; | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment