code/Debug/controllers/IndexController.php
public function viewAction()
    {
        $token = (string)$this->getRequest()->getParam('token');
        if (!$token) {
            $this->getResponse()->setHttpResponseCode(400);
            return $this->_getRefererUrl();
        }

        /** @var Sheep_Debug_Model_RequestInfo $requestInfo */
        $requestInfo = Mage::getModel('sheep_debug/requestInfo')->load($token, 'token');
        if (!$requestInfo->getId()) {
            $this->getResponse()->setHttpResponseCode(404);
            return $this->_getRefererUrl();
        }

        $section = $this->getRequest()->getParam('panel', 'request');
        if (!in_array($section, array('request', 'performance', 'events', 'db', 'logging', 'email', 'layout', 'config'))) {
            $section = 'request';
        }

        Mage::register('sheep_debug_request_info', $requestInfo);

        $blockName = 'sheep_debug_' . $section;
        $blockTemplate = "sheep_debug/view/panel/{$section}.phtml";

        // Add section block to content area
        $this->loadLayout();
        $layout = $this->getLayout();
        $sectionBlock = $layout->createBlock('sheep_debug/view', $blockName, array('template' => $blockTemplate));
        $layout->getBlock('sheep_debug_content')->insert($sectionBlock);

        $layout->getBlock('root')->setHeaderTitle($this->__('Profile for request %s (%s)', $requestInfo->getRequestPath(), $requestInfo->getToken()));

        $this->renderLayout();
    }
public function viewAction()
    {
        $token = (string)$this->getRequest()->getParam('token');
        if (!$token) {
            $this->getResponse()->setHttpResponseCode(400);
            return $this->_getRefererUrl();
        }

        /** @var Sheep_Debug_Model_RequestInfo $requestInfo */
        $requestInfo = Mage::getModel('sheep_debug/requestInfo')->load($token, 'token');
        if (!$requestInfo->getId()) {
            $this->getResponse()->setHttpResponseCode(404);
            return $this->_getRefererUrl();
        }

        $section = $this->getRequest()->getParam('panel', 'request');
        if (!in_array($section, array('request', 'performance', 'events', 'db', 'logging', 'email', 'layout', 'config'))) {
            $section = 'request';
        }

        Mage::register('sheep_debug_request_info', $requestInfo);

        $blockName = 'sheep_debug_' . $section;
        $blockTemplate = "sheep_debug/view/panel/{$section}.phtml";

        // Add section block to content area
        $this->loadLayout();
        $layout = $this->getLayout();
        $sectionBlock = $layout->createBlock('sheep_debug/view', $blockName, array('template' => $blockTemplate));
        $layout->getBlock('sheep_debug_content')->insert($sectionBlock);

        $layout->getBlock('root')->setHeaderTitle($this->__('Profile for request %s (%s)', $requestInfo->getRequestPath(), $requestInfo->getToken()));

        $this->renderLayout();
    }
View request profile page