Closed Bug 1185504 Opened 9 years ago Closed 9 years ago

[ServiceWorkers][toolkit] Add performance marks to the library

Categories

(Firefox OS Graveyard :: Gaia, defect)

defect
Not set
normal

Tracking

(b2g-master fixed)

RESOLVED FIXED
FxOS-S4 (07Aug)
Tracking Status
b2g-master --- fixed

People

(Reporter: arcturus, Assigned: arcturus)

References

Details

Attachments

(1 file)

We will need to add performance marks to the library, which should not be present when we have a release version.

We should add a new target to the build process to get the debug information, and those markers should be removed in the normal build process.
Assignee: nobody → francisco
Status: NEW → ASSIGNED
Target Milestone: --- → FxOS-S3 (24Jul)
First feedback pass
Attachment #8636071 - Flags: feedback?(salva)
Comment on attachment 8636071 [details] [review]
Pointer to github pull request

My only comment is to add a *.md explaining the marks.

Notice performance marks for install/fetch/activate events are placed just after the respond in a synchronous way. This is correct but not complete because we should add another mark after the asynchronous `.respondWith()` completes. I don't know if this is even possible but what is possible is to add the mark after the promise resolves. This way, with no middlewares installed, we could take into account the overhead of the asynchronous path.

I don't know if you got my point. Let me know.
Attachment #8636071 - Flags: feedback?(salva) → feedback+
Target Milestone: FxOS-S3 (24Jul) → FxOS-S4 (07Aug)
Comment on attachment 8636071 [details] [review]
Pointer to github pull request

Hi Salva,

I've added your recommendations and added a .md page for information about how to get the debugging build and what the performance marks are for.

Please feel free to add a pr to this one with the extra data that you would like to add.
Attachment #8636071 - Flags: review?(salva)
Comment on attachment 8636071 [details] [review]
Pointer to github pull request

Code LGTM. Let's add the middleware measurements in a follow up.
Attachment #8636071 - Flags: review?(salva) → review+
Landed:

https://github.com/gaia-components/serviceworkerware/commit/77302995284de5ab8a61bccd2f4acb52da504090
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: