Skip to content

Improve PerformanceTiming Interface - #10538

Merged
bors-servo merged 1 commit into
servo:masterfrom
izgzhen:performance_timing
Apr 12, 2016
Merged

bors-servo merged 1 commit into
servo:masterfrom
izgzhen:performance_timing

Conversation

@izgzhen

@izgzhen izgzhen commented Apr 12, 2016

Copy link
Copy Markdown
Contributor

Solving #10428

  • Fix timing precision in old update_with_current_time
  • Correct time unit in navigation_start
  • Add LoadEventStart and LoadEventEnd timing properties

There are still many properties left unimplemented. I tend to leave the for future PRs.

Welcome comments!


This change is Reviewable

@highfive

Copy link
Copy Markdown

Thanks for the pull request, and welcome! The Servo team is excited to review your changes, and you should hear from @pcwalton (or someone else) soon.

@highfive

Copy link
Copy Markdown

Heads up! This PR modifies the following files:

  • @KiChjang: components/script/dom/webidls/PerformanceTiming.webidl, components/script/dom/document.rs, components/script/dom/window.rs, components/script/dom/performancetiming.rs

@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Apr 12, 2016
@highfive

Copy link
Copy Markdown

warning Warning warning

  • These commits modify script code, but no tests are modified. Please consider adding a test!

let wintarget = window.upcast::<EventTarget>();
event.set_trusted(true);

update_with_current_time_ms(&document.load_event_start);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

spec links please

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added now, thanks.

@Manishearth

Copy link
Copy Markdown
Member

overall lgtm

@Manishearth

Copy link
Copy Markdown
Member

r? @KiChjang

@highfive highfive assigned KiChjang and unassigned nox Apr 12, 2016
@KiChjang KiChjang added S-needs-code-changes Changes have not yet been made that were requested by a reviewer. and removed S-awaiting-review There is new code that needs to be reviewed. labels Apr 12, 2016
@KiChjang

Copy link
Copy Markdown
Contributor

-S-awaiting-review +S-needs-code-changes

This looks pretty decent! r=me modulo my small nit.


Reviewed 3 of 4 files at r1, 1 of 1 files at r2.
Review status: all files reviewed at latest revision, 2 unresolved discussions.


components/script/dom/document.rs, line 213 [r2] (raw file):
nit: space after ///, and link doesn't work. Did you mean http://w3c.github.io/navigation-timing/#sec-PerformanceNavigationTiming instead?


Comments from Reviewable

@highfive highfive added S-awaiting-review There is new code that needs to be reviewed. and removed S-needs-code-changes Changes have not yet been made that were requested by a reviewer. labels Apr 12, 2016
@izgzhen

izgzhen commented Apr 12, 2016

Copy link
Copy Markdown
Contributor Author

Review status: all files reviewed at latest revision, 2 unresolved discussions.


components/script/dom/document.rs, line 213 [r2] (raw file):
You are right. Thanks for your patience!


Comments from Reviewable

@KiChjang

Copy link
Copy Markdown
Contributor

@bors-servo r+

Thanks!


Reviewed 1 of 1 files at r3.
Review status: all files reviewed at latest revision, 1 unresolved discussion.


Comments from Reviewable

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit e22d0e0 has been approved by KiChjang

@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-awaiting-review There is new code that needs to be reviewed. labels Apr 12, 2016
@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit e22d0e0 with merge 04e2f35...

bors-servo pushed a commit that referenced this pull request Apr 12, 2016
Improve PerformanceTiming Interface

Solving #10428

- Fix timing precision in old `update_with_current_time`
- Correct time unit in `navigation_start`
- Add `LoadEventStart` and `LoadEventEnd` timing properties

There are still many properties left unimplemented. I tend to leave the for future PRs.

Welcome comments!

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10538)
<!-- Reviewable:end -->
@bors-servo

Copy link
Copy Markdown
Contributor

💔 Test failed - mac-rel-wpt

@highfive highfive added S-tests-failed The changes caused existing tests to fail. and removed S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. labels Apr 12, 2016
@Ms2ger

Ms2ger commented Apr 12, 2016

Copy link
Copy Markdown
Contributor

I'm happy to see:


  ▶ Unexpected subtest result in /hr-time/test_cross_frame_start.html:
  └ PASS [expected FAIL] Child created at least 1 second after parent

  ▶ Unexpected subtest result in /hr-time/test_cross_frame_start.html:
  └ PASS [expected FAIL] Child and parent time bases are correct

Please update the expectation files. (Ask on IRC if you don't know how.)

@highfive highfive added S-awaiting-review There is new code that needs to be reviewed. and removed S-tests-failed The changes caused existing tests to fail. labels Apr 12, 2016
@Ms2ger

Ms2ger commented Apr 12, 2016

Copy link
Copy Markdown
Contributor

@bors-servo r+

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit 7169a08 has been approved by Ms2ger

@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-awaiting-review There is new code that needs to be reviewed. labels Apr 12, 2016
@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit 7169a08 with merge fd1e591...

bors-servo pushed a commit that referenced this pull request Apr 12, 2016
Improve PerformanceTiming Interface

Solving #10428

- Fix timing precision in old `update_with_current_time`
- Correct time unit in `navigation_start`
- Add `LoadEventStart` and `LoadEventEnd` timing properties

There are still many properties left unimplemented. I tend to leave the for future PRs.

Welcome comments!

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10538)
<!-- Reviewable:end -->
@bors-servo

Copy link
Copy Markdown
Contributor

💔 Test failed - linux-rel

@highfive highfive added S-tests-failed The changes caused existing tests to fail. and removed S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. labels Apr 12, 2016
@KiChjang

Copy link
Copy Markdown
Contributor

@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit 7169a08 with merge 421dcc9...

bors-servo pushed a commit that referenced this pull request Apr 12, 2016
Improve PerformanceTiming Interface

Solving #10428

- Fix timing precision in old `update_with_current_time`
- Correct time unit in `navigation_start`
- Add `LoadEventStart` and `LoadEventEnd` timing properties

There are still many properties left unimplemented. I tend to leave the for future PRs.

Welcome comments!

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10538)
<!-- Reviewable:end -->
@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-tests-failed The changes caused existing tests to fail. labels Apr 12, 2016
@bors-servo

Copy link
Copy Markdown
Contributor

☀️ Test successful - android, arm32, arm64, linux-dev, linux-rel, mac-dev-unit, mac-rel-css, mac-rel-wpt

@bors-servo
bors-servo merged commit 7169a08 into servo:master Apr 12, 2016
@highfive highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Apr 12, 2016
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.

7 participants