I really like in the Debug Toolbar it shows how fast the page is loading and breaksdown how long each part of the code is taking.
Is there anyway to run this code within a script separately from the Debug Toolbar?
I want to create my own local spider to search my site, run the page-loading check and store the results in a DB to help me look for slow pages (instead of just manually browsing the site or using another 3rd party script).