++++++++++++++++++++++++ Magento Profiler ++++++++++++++++++++++++
http://www.fabrizio-branca.de/magento-profiler.html
To profile shell scripts like Mage_Shell_Compiler change code at the end of the file to:
$_GET['profile'] = true;
require_once '../app/Mage.php';
Varien_Profiler::start("wrapper");
$shell = new Mage_Shell_Compiler();
$shell->run();
Varien_Profiler::stop("wrapper");
Mage::helper('aoe_profiler')->renderProfilerOutputToFile();
You will find html page with rendered profiler output in var/log/profile.html