Closed Bug 1320671 Opened 8 years ago Closed 7 years ago

Show gzip request sizes in the network performance summary view

Categories

(DevTools :: Netmonitor, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1168376

People

(Reporter: pbro, Unassigned)

Details

Attachments

(1 file, 3 obsolete files)

See this discussion thread: https://twitter.com/isellsoap/status/803227694460768261

STR:
- open the network monitor
- navigate to any site
- switch to the network performance view
- wait for the 2 pie charts to appear

=> Notice that the various requests sizes displayed there are after decompression. If gzip was used, the un-gzipped size is used.
In this view, we're focusing on what happened on the network, so it would make more sense to actually display the size of the what was transferred.
This fix would be really handy. It would also normalize behavior between browsers.

See Chrome actual transferred page weight (no cache) of the nytimes.com (5.5 MB): http://fs5.directupload.net/images/161128/lanit3ag.png

vs. Firefox summary view page weight (no cache) of the nytimes.com (7.2 MB): http://fs5.directupload.net/images/161128/gonj7ei2.png

Chrome depicts the real transferred page weight (the gziped one), Firefox does not.
This is pretty simple to fix, but I'm wondering if the button to open performance analysis should also be changed, since now it'll disagree with the numbers in the summary.

Also if it should be indicated somehow that transferred rather than content sizes are being displayed?
Flags: needinfo?(pbrosset)
Comment on attachment 8815874 [details]
Bug 1320671 - Display transferred/compressed (instead of content/uncompressed) size in the network performance summary view. r?

Steve, could you please provide feedback for this patch? (it's just one-liner)

Thanks,
Honza
Attachment #8815874 - Flags: feedback?(schung)
Comment on attachment 8815874 [details]
Bug 1320671 - Display transferred/compressed (instead of content/uncompressed) size in the network performance summary view. r?

This change doesn't conflict to the performance statistic refactoring patch in bug 1308697, so it should be fine.
Attachment #8815874 - Flags: feedback?(schung) → feedback+
(In reply to Ian Moody [:Kwan] from comment #3)
> This is pretty simple to fix, but I'm wondering if the button to open
> performance analysis should also be changed, since now it'll disagree with
> the numbers in the summary.
Sorry for the delay answering. I think that makes to me, but I'll let Honza make the final call and also decide whether this should be done here or in another bug.
> Also if it should be indicated somehow that transferred rather than content
> sizes are being displayed?
Flags: needinfo?(pbrosset) → needinfo?(odvarko)
Attached image size.png
(In reply to Patrick Brosset <:pbro> from comment #6)
> (In reply to Ian Moody [:Kwan] from comment #3)
> > This is pretty simple to fix, but I'm wondering if the button to open
> > performance analysis should also be changed, since now it'll disagree with
> > the numbers in the summary.
> > Also if it should be indicated somehow that transferred rather than content
> > sizes are being displayed?
All valid points.

Here is what I think we should do:

1) The text under pie charts should display additional "Transferred size" field. See the attached mockup.

2) The button's label (for opening perf analysis) can stay's the same, but we should modify its tooltip. It should display also the transferred size.

An example of the tooltip text:
4 requests, 19,72 KB size, 3,57 KB transferred, 0,18 s

(I don't want to put the transferred size in the button's label since it would take a lot of horizontal space in the toolbar)

All should be done as part of this bug.

I am happy to do the review here, but note that I am on PTO last two weeks in December.
It's fine if anyone else wants to jump in and make things faster.

Btw. I tested your patch and using the 'transferredSize' field works well.

Thanks for working on this Ian!

Honza
Flags: needinfo?(odvarko)
Attachment #8815874 - Attachment is obsolete: true
NI=me, just to make sure I get back to this if needed.

Honza
Flags: needinfo?(odvarko)
Status: NEW → RESOLVED
Closed: 7 years ago
Flags: needinfo?(odvarko)
Resolution: --- → DUPLICATE
Attachment #8819339 - Attachment is obsolete: true
Attachment #8819340 - Attachment is obsolete: true
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: