Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add workerStart attribute to measure SW startup #18

Merged
merged 4 commits into from
Apr 3, 2015
Merged

Conversation

igrigorik
Copy link
Member

Closes #11.

  • missing registration results in zero value (i.e. SW not used)
  • set to time when worker is run or fetch is fired at worker

@slightlyoff could you sanity check the wording around active workers and matching registrations? Does that look sane?

@plehegar I've removed the HTTP GET clause in processing because its unnecessarily restrictive (SW sees all fetches regardless of the HTTP verb). Let me know if this is an issue... it seems like a bug in current spec - e.g. it would imply that POST'ed XHRs are not reported within RT.

- optional attribute because SW support is not (yet) universal
- missing registration results in zero value (i.e. SW not used)
- set to time when worker is run or fetch is fired at worker
Unnecessary restriction and application cache check is covered by the
"fetching process" algorithm already.
@toddreifsteck
Copy link
Member

LGTM

@plehegar
Copy link
Member

In general, it's a bad idea to have optional features imho. We did make secureConnectionStart optional in nav timing and I don't believe it served anyone. If SW isn't used or supported, it should return 0 imho.

@igrigorik
Copy link
Member Author

@plehegar sgtm, removed optional in 9b63c9a.

@slightlyoff
Copy link

LGTM++

igrigorik added a commit that referenced this pull request Apr 3, 2015
Add workerStart attribute to measure SW startup
@igrigorik igrigorik merged commit e0c60f1 into gh-pages Apr 3, 2015
igrigorik added a commit to w3c/navigation-timing that referenced this pull request Apr 3, 2015
@igrigorik igrigorik deleted the workerStart branch July 20, 2015 21:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add workerStart attribute to measure (Service)Worker startup time
4 participants