* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ /** * sfWebDebugPanelMemory adds a panel to the web debug toolbar with the memory used by the script. * * @package symfony * @subpackage debug * @author Fabien Potencier * @version SVN: $Id: sfWebDebugPanelMemory.class.php 12982 2008-11-13 17:25:10Z hartym $ */ class sfWebDebugPanelMemory extends sfWebDebugPanel { public function getTitle() { if (function_exists('memory_get_usage')) { $totalMemory = sprintf('%.1f', (memory_get_usage() / 1024)); return 'Memory '.$totalMemory.' KB'; } } public function getPanelTitle() { } public function getPanelContent() { } }