Current time: 09-22-2014, 06:10 PM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
The “HTTP Archive” format
01-22-2013, 01:51 AM (This post was last modified: 01-23-2013 05:28 PM by viveksingh98.)
Post: #1
The “HTTP Archive” format
Hi Pat,

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?

Thanks!
Find all posts by this user
Quote this message in a reply
01-22-2013, 08:18 AM
Post: #2
RE: The “HTTP Archive” format
There is a HAR viewer - http://www.softwareishard.com/blog/har-viewer/ but generally we need some better tools for analysing and comparing HAR files
Visit this user's website Find all posts by this user
Quote this message in a reply
01-22-2013, 07:42 PM (This post was last modified: 01-23-2013 02:26 AM by viveksingh98.)
Post: #3
RE: The “HTTP Archive” format
Can we somehow parse the HAR files and plot graphs of individual element response times ?

For instance if we want to see a trend of response times for each element and graph them individually, can this be achieved by parsing the HAR files ?
Find all posts by this user
Quote this message in a reply
01-23-2013, 02:26 AM
Post: #4
RE: The “HTTP Archive” format
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.
Visit this user's website Find all posts by this user
Quote this message in a reply
01-23-2013, 04:46 AM
Post: #5
RE: The “HTTP Archive” format
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!!
Find all posts by this user
Quote this message in a reply
01-23-2013, 04:47 AM
Post: #6
RE: The “HTTP Archive” format
Here are the docs (for what they are) on the API which includes the XML interface: https://sites.google.com/a/webpagetest.o...stful-apis
Visit this user's website Find all posts by this user
Quote this message in a reply
01-23-2013, 04:55 AM (This post was last modified: 01-23-2013 05:39 PM by viveksingh98.)
Post: #7
RE: The “HTTP Archive” format
Perfect! I'll go through these and revert if i have any more question. Thanks a ton for your help with this Pat!
Find all posts by this user
Quote this message in a reply
01-23-2013, 09:40 PM
Post: #8
RE: The “HTTP Archive” format
The API converts the result summary page into XML tags but i don't see it translating the waterfall into xml.

For example - The page http://www.webpagetest.org/result/091111_2XFH/?r=12345 can be converted into xml like this:
http://www.webpagetest.org/xmlResult/091...H/?r=12345

but this page http://www.webpagetest.org/result/091111...1/details/
cannot be converted in the similar way - http://www.webpagetest.org/xmlResult/091.../details/.

I'm more concerned in converting the waterfall result into xml where i can get the load times of individual elements.
Find all posts by this user
Quote this message in a reply
01-24-2013, 03:18 AM
Post: #9
RE: The “HTTP Archive” format
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:

http://www.webpagetest.org/xmlResult/091...requests=1
Visit this user's website Find all posts by this user
Quote this message in a reply
01-24-2013, 03:27 AM
Post: #10
RE: The “HTTP Archive” format
Docs updated: https://sites.google.com/a/webpagetest.o...st-results

There are a few other parameters that also add more data to the XML responses.
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)