muladamai / harviewer

Automatically exported from code.google.com/p/harviewer
0 stars 0 forks source link

Vertical lines in wrong position #70

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Use the attached HAR
2. View

What is the expected output? What do you see instead?

The red and blue lines render in the wrong location.  I expect them at 309 and 
534, but they're in very different locations.  (see picture)

What version of the product are you using? On what operating system?

2.0.15

Please provide any additional information below.

The HAR file was exported from the Network panel in Safari's inspector.  I've 
sanitized it a bit to remove identifying information.

Please attach a HAR file that can be used to reproduce the problem.

Original issue reported on code.google.com by g...@bcholmes.org on 3 Feb 2012 at 4:29

Attachments:

GoogleCodeExporter commented 9 years ago
The file doesn't seem to be valid HAR.

Except of many:
log.entries[0].request.httpVersion is missing and it is not optional
log.entries[0].response.httpVersion is missing and it is not optional

... the first entry has:

entry.time == 309

but summary of timings in entry.timings is 125

Where would you expect the lines to appear?

Honza

Original comment by odva...@gmail.com on 3 Feb 2012 at 7:08

GoogleCodeExporter commented 9 years ago
*nod*  I hear you about the flawed output.  Unfortunately, that's the data that 
Safari produces.  (I've upgraded to a more up-to-date version of Safari -- 
5.1.2 -- since I produced that file, but those flaws are still present in the 
output).

It appears that the entry.time correctly provides the overall download time and 
the timings.receive only reflects the actual receive time.  To be more correct, 
the Safari output should, I suppose, include the delta in the entries.wait.  
(I'll probably try, as way of getting better results, to scriptify a fix for 
the Safari output).  

In any event, the viewer has been extremely useful.  Thanks for it!

Regarding the question of where I would expect the lines to appear -- the first 
horizontal bar in the graph is labelled as "309".  I would expect the blue 
vertical line (the "onContentLoad" bar -- also "309") to be at the same 
location as where that first horizontal bar ends.  

As a software professional, I can fully understand a response to this defect 
that says "hey, garbage in, garbage out".  I nonetheless hoped that I could get 
good results using the HAR output from a major browser.

Original comment by g...@bcholmes.org on 3 Feb 2012 at 4:49

GoogleCodeExporter commented 9 years ago
> to be at the same location as where that first horizontal bar ends.  
Ah, I see what you mean.

I'll try to fix it and if it's too difficult my answer will be "hey, garbage 
in, garbage out" ;-)

Honza

Original comment by odva...@gmail.com on 3 Feb 2012 at 5:05

GoogleCodeExporter commented 9 years ago
FYI... once I script-fixed the Safari output, the viewer produces much better 
results.  Thanks for the pointer.

Original comment by g...@bcholmes.org on 3 Feb 2012 at 5:09