code/Debug/Model/Observer.php
public function updateProfiling()
    {
        $requestInfo = $this->getRequestInfo();

        if (!$requestInfo->getIsStarted()) {
            return;
        }

        $helper = Mage::helper('sheep_debug');

        // update query information
        $requestInfo->initQueries();

        // capture log ranges
        $requestInfo->completeLogging();

        // update Magento session attributes
        $requestInfo->getController()->initFromSession();

        // save rendering time
        $requestInfo->setRenderingTime(Sheep_Debug_Model_Block::getTotalRenderingTime());

        $requestInfo->setPeakMemory($helper->getMemoryUsage());
        $requestInfo->setTime($helper->getCurrentScriptDuration());
        $requestInfo->setTimers(Varien_Profiler::getTimers());
        $requestInfo->setResponseCode(http_response_code());
    }
public function updateProfiling()
    {
        $requestInfo = $this->getRequestInfo();

        if (!$requestInfo->getIsStarted()) {
            return;
        }

        $helper = Mage::helper('sheep_debug');

        // update query information
        $requestInfo->initQueries();

        // capture log ranges
        $requestInfo->completeLogging();

        // update Magento session attributes
        $requestInfo->getController()->initFromSession();

        // save rendering time
        $requestInfo->setRenderingTime(Sheep_Debug_Model_Block::getTotalRenderingTime());

        $requestInfo->setPeakMemory($helper->getMemoryUsage());
        $requestInfo->setTime($helper->getCurrentScriptDuration());
        $requestInfo->setTimers(Varien_Profiler::getTimers());
        $requestInfo->setResponseCode(http_response_code());
    }
public function updateProfiling ( ) { $ requestInfo = $ this -> getRequestInfo ( ) ; if ( ! $ requestInfo -> getIsStarted ( ) ) { return ; } $ helper = Mage :: helper ( 'sheep_debug' ) ; // update query information $ requestInfo -> initQueries ( ) ; // capture log ranges $ requestInfo -> completeLogging ( ) ; // update Magento session attributes $ requestInfo -> getController ( ) -> initFromSession ( ) ; // save rendering time $ requestInfo -> setRenderingTime ( Sheep_Debug_Model_Block :: getTotalRenderingTime ( ) ) ; $ requestInfo -> setPeakMemory ( $ helper -> getMemoryUsage ( ) ) ; $ requestInfo -> setTime ( $ helper -> getCurrentScriptDuration ( ) ) ; $ requestInfo -> setTimers ( Varien_Profiler :: getTimers ( ) ) ; $ requestInfo -> setResponseCode ( http_response_code ( ) ) ; }
Can be manually called to update current profile with data collected from (loggers, SQL Profiler, etC)
Executed after response is send to update profile with latest information
Can be manually called to update current profile with data collected from ( loggers SQL Profiler etC ) Executed after response is send to update profile with latest information