Skip to content

Commit 76d189f

Browse files
committedDec 19, 2023
Bug 1353798 - [devtools] Add documentation for service worker timings r=devtools-reviewers,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D196389
1 parent 3f7b0dd commit 76d189f

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed
 

‎devtools/docs/user/network_monitor/request_details/index.rst

+25
Original file line numberDiff line numberDiff line change
@@ -457,6 +457,31 @@ New in Firefox 71, the *Server Timing* section lists any information provided in
457457

458458
The header takes a series of descriptions and durations, which can be anything you like. In the above screenshot for example, the highlighted request's ``Server-Timing`` header contains 4 items — *data*, *markup*, *total*, and *miss*.
459459

460+
Service Worker Timing
461+
~~~~~~~~~~~~~~~~~~~~~
462+
463+
The *Service Worker Timing* section lists the information relating to the specific service worker request. The metrics include Startup, Dispatch fetch and Handle fetch.
464+
465+
.. image:: network-service-worker-timings.png
466+
:class: border
467+
468+
.. list-table::
469+
:widths: 20 80
470+
:header-rows: 0
471+
472+
473+
* - Name
474+
- Description
475+
476+
* - Startup
477+
- Time taken to launch the service worker, this is only indicated if the launch starts after the fetch event has already been dispatched.
478+
479+
* - Dispatch fetch
480+
- Time taken from when a fetch event is triggered to just before it starts getting handled by the service worker.
481+
482+
* - Handle fetch
483+
- Time taken to by the service worker to handle the fetch event.
484+
460485

461486
.. _network-monitor-request-details-security-tab:
462487

Loading

0 commit comments

Comments
 (0)
Failed to load comments.