Given a URL, on a server (preferably Linux), I'm interested in finding out load times of all different resources loaded by that URL. These resources would be JavaScript/CSS/Images, etc. (I can't simply scrape a page because many of these resources are loaded by JavaScript, say using document.write) Basically, I want to get the information that Firebug's NET tab provides in a machine readable format on a server. How can I do that?
Some of the existing services that provide such functionality are:
- http://www.webpagetest.org/
- http://tools.pingdom.com/
- http://www.site-perf.com/
- http://loadimpact.com/
How do these services work? I was exploring a Java library called HTMLUnit which can execute JavaScript on a page on server-side but I'm not sure if it can provide the information I am looking for.