How can we download a waterfall directly using WPT ? Right now there is an option - “Export HTTP Archive (.har)” which is very much like what’s available in chrome but the problem is its quite difficult to find an executable which opens this file format. Can we somehow download the waterfall Time graph in common format like jpg because I just don’t know whether it’s directly accessible via WPT?
Not sure exactly what you are looking for. The png’s for the waterfalls are readily available (the API also includes links for them) though it won’t plot anything at an individual element level over time.
If you want to watch specific elements and plot them over time you would need to parse either the XML from Webpagetest or the HAR’s and implement the plotting logic yourself.
You’ve got that right Pat. I would like to download data in XML format so that i can write a logic to plot the performance of each element over a period of time. The reason for this is, i would like to monitor the trend of each element and compare which element takes more time to load and hence ending up degrading the overall performance of the page (talking shear from the page load angle).
I’m not much familiar with HAR file format and i do not know how to parse it but i’m quite comfortable with XML.
Can you tell me where exactly can i get data in xml format using WPT?
And if its possible to implement what i’m thinking about??
Thanks!!
Sorry, try throwing a &requests=1 on the end of the XML request - that will get it to include the raw request data in the XML as well (not enabled by default because it’s a fair bit slower). I’ll make sure to add that to the docs: