Closed Bug 1411889 Opened 7 years ago Closed 7 years ago

Add telemetry to track netmonitor update time on page reload

Categories

(DevTools :: Netmonitor, enhancement, P2)

enhancement

Tracking

(firefox57 fix-optional, firefox59 fixed)

RESOLVED FIXED
Firefox 59
Tracking Status
firefox57 --- fix-optional
firefox59 --- fixed

People

(Reporter: ochameau, Assigned: ochameau)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Bug 1405585 introduced a generic way to track how much time each panel takes to update after a page reload. This bug added support for the inspector.

Now all other panels should emit a "reloaded" event on its Panel object whenever it consider it is fully updated after a page reload.
This is not obvious and will require specific decision for each tool.

Here for the netmonitor, we should wait for all ressources loaded before "load" event to be fully displayed in the netmonitor. We should ignore any XHR or dynamic request.
This bug depends on bug 1372115 as the error on the backend side makes it so that some requests (the requests for js files that are put in bytecode case) stay pending for ever in the payload queue and so the precise way I used to determine when the netmonitor is done reloading is broken.
Depends on: 1372115
Comment on attachment 8928914 [details]
Bug 1411889 - Record netmonitor reload time.

https://reviewboard.mozilla.org/r/200248/#review206370

Looks good, thanks Alex.

R+

Honza
Attachment #8928914 - Flags: review?(odvarko) → review+
Assignee: nobody → poirot.alex
Comment on attachment 8928914 [details]
Bug 1411889 - Record netmonitor reload time.

https://reviewboard.mozilla.org/r/200248/#review206754

::: devtools/client/netmonitor/src/connector/firefox-data-provider.js:235
(Diff revision 2)
>    getRequestFromQueue(id) {
>      return this.payloadQueue.find((item) => item.id === id);
>    }
>  
>    /**
> +   * Tells if there is still any pending request.

Add a note like `Public connector API to ...` might helpful for trace code so we know this function is used elsewhere
(In reply to Fred Lin [:gasolin] from comment #5)
> Add a note like `Public connector API to ...` might helpful for trace code
> so we know this function is used elsewhere

Done.
Pushed by apoirot@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/8a58f74c6139
Record netmonitor reload time. r=Honza
https://hg.mozilla.org/mozilla-central/rev/8a58f74c6139
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 59
Depends on: 1420037
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: