New issue
Advanced search Search tips

Issue 747989 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner:
Closed: Aug 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Chrome , Mac
Pri: 3
Type: Launch-OWP
Launch-Accessibility: NA
Launch-Exp-Leadership: ----
Launch-Leadership: ----
Launch-Legal: NA
Launch-M-Approved: ----
Launch-M-Target: ----
Launch-Privacy: NotReviewed
Launch-Security: NotReviewed
Launch-Test: NotReviewed
Launch-UI: NA
Rollout-Type: ----



Sign in to add a comment

Implement and ship Performance.timeOrigin

Project Member Reported by npm@chromium.org, Jul 24 2017

Issue description

Change description:
The performance.timeOrigin attribute is useful for developers to be able to compare timings of objects (like windows or workers) with different time origins. See https://www.w3.org/TR/hr-time-3/#examples

Changes to API surface:
Performance.timeOrigin

Links:
Spec: https://www.w3.org/TR/hr-time-3/#time-origin-timestamp 

Support in other browsers:
Edge: Preview
Firefox: Supported
Safari: Not yet

 

Comment 1 Deleted

Project Member

Comment 2 by bugdroid1@chromium.org, Jul 26 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/354011b3189d9bb88d6f5734523e6714cdba7bcf

commit 354011b3189d9bb88d6f5734523e6714cdba7bcf
Author: Nicolas Pena <npm@chromium.org>
Date: Wed Jul 26 05:47:47 2017

Implement Performance.timeOrigin

This CL adds performance.timeOrigin under an experimental flag. Definition:
https://www.w3.org/TR/hr-time-3/#dom-performance-timeorigin

The unix time for when the global monotonic clock is 0 is calculated at
the time when the first Performance object is created as the system time
minus the monotonic clock time.

This CL also adds a test for this attribute.

Bug:  chromium:739277 ,  chromium:747989 
Change-Id: I5e8cf4e098615052bd5db35956dcfcdd7dd44b90
Reviewed-on: https://chromium-review.googlesource.com/583636
Commit-Queue: Nicolás Peña <npm@chromium.org>
Reviewed-by: Kentaro Hara <haraken@chromium.org>
Reviewed-by: Kinuko Yasuda <kinuko@chromium.org>
Reviewed-by: Timothy Dresser <tdresser@chromium.org>
Cr-Commit-Position: refs/heads/master@{#489562}
[add] https://crrev.com/354011b3189d9bb88d6f5734523e6714cdba7bcf/third_party/WebKit/LayoutTests/external/wpt/hr-time/timeOrigin.html
[modify] https://crrev.com/354011b3189d9bb88d6f5734523e6714cdba7bcf/third_party/WebKit/LayoutTests/fast/dom/Window/property-access-on-cached-properties-after-frame-navigated-expected.txt
[modify] https://crrev.com/354011b3189d9bb88d6f5734523e6714cdba7bcf/third_party/WebKit/LayoutTests/fast/dom/Window/property-access-on-cached-properties-after-frame-removed-and-gced-expected.txt
[modify] https://crrev.com/354011b3189d9bb88d6f5734523e6714cdba7bcf/third_party/WebKit/LayoutTests/fast/dom/Window/property-access-on-cached-properties-after-frame-removed-expected.txt
[modify] https://crrev.com/354011b3189d9bb88d6f5734523e6714cdba7bcf/third_party/WebKit/LayoutTests/fast/dom/Window/property-access-on-cached-window-after-frame-navigated-expected.txt
[modify] https://crrev.com/354011b3189d9bb88d6f5734523e6714cdba7bcf/third_party/WebKit/LayoutTests/fast/dom/Window/property-access-on-cached-window-after-frame-removed-and-gced-expected.txt
[modify] https://crrev.com/354011b3189d9bb88d6f5734523e6714cdba7bcf/third_party/WebKit/LayoutTests/fast/dom/Window/property-access-on-cached-window-after-frame-removed-expected.txt
[modify] https://crrev.com/354011b3189d9bb88d6f5734523e6714cdba7bcf/third_party/WebKit/LayoutTests/fast/dom/Window/resources/window-property-collector.js
[modify] https://crrev.com/354011b3189d9bb88d6f5734523e6714cdba7bcf/third_party/WebKit/LayoutTests/fast/dom/Window/window-properties-performance-expected.txt
[modify] https://crrev.com/354011b3189d9bb88d6f5734523e6714cdba7bcf/third_party/WebKit/LayoutTests/virtual/service-worker-navigation-preload-disabled/webexposed/global-interface-listing-expected.txt
[modify] https://crrev.com/354011b3189d9bb88d6f5734523e6714cdba7bcf/third_party/WebKit/LayoutTests/webexposed/global-interface-listing-expected.txt
[modify] https://crrev.com/354011b3189d9bb88d6f5734523e6714cdba7bcf/third_party/WebKit/Source/core/timing/Performance.cpp
[modify] https://crrev.com/354011b3189d9bb88d6f5734523e6714cdba7bcf/third_party/WebKit/Source/core/timing/Performance.idl
[modify] https://crrev.com/354011b3189d9bb88d6f5734523e6714cdba7bcf/third_party/WebKit/Source/core/timing/PerformanceBase.cpp
[modify] https://crrev.com/354011b3189d9bb88d6f5734523e6714cdba7bcf/third_party/WebKit/Source/core/timing/PerformanceBase.h
[modify] https://crrev.com/354011b3189d9bb88d6f5734523e6714cdba7bcf/third_party/WebKit/Source/core/timing/PerformanceUserTiming.cpp
[modify] https://crrev.com/354011b3189d9bb88d6f5734523e6714cdba7bcf/third_party/WebKit/Source/core/timing/WorkerPerformance.idl
[modify] https://crrev.com/354011b3189d9bb88d6f5734523e6714cdba7bcf/third_party/WebKit/Source/platform/RuntimeEnabledFeatures.json5

Project Member

Comment 3 by bugdroid1@chromium.org, Aug 18 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/6239bc6b7d27a33b9498fb237dd8a0553cfe3362

commit 6239bc6b7d27a33b9498fb237dd8a0553cfe3362
Author: Nicolas Pena <npm@chromium.org>
Date: Fri Aug 18 19:18:46 2017

Ship performance.timeOrigin

Intent to Ship:
https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/3AISwpQNoNs

Bug:  chromium:747989 ,  chromium:739277 
Change-Id: Ib19681cc608dd5e7554e794241cf00cd126e3253
Reviewed-on: https://chromium-review.googlesource.com/619246
Reviewed-by: Tim Volodine <timvolodine@chromium.org>
Reviewed-by: Philip Jägenstedt <foolip@chromium.org>
Commit-Queue: Nicolás Peña <npm@chromium.org>
Cr-Commit-Position: refs/heads/master@{#495642}
[modify] https://crrev.com/6239bc6b7d27a33b9498fb237dd8a0553cfe3362/android_webview/tools/system_webview_shell/test/data/webexposed/global-interface-listing-expected.txt
[modify] https://crrev.com/6239bc6b7d27a33b9498fb237dd8a0553cfe3362/third_party/WebKit/LayoutTests/platform/mac/virtual/stable/webexposed/global-interface-listing-expected.txt
[modify] https://crrev.com/6239bc6b7d27a33b9498fb237dd8a0553cfe3362/third_party/WebKit/LayoutTests/platform/win/virtual/stable/webexposed/global-interface-listing-expected.txt
[modify] https://crrev.com/6239bc6b7d27a33b9498fb237dd8a0553cfe3362/third_party/WebKit/Source/core/timing/Performance.idl
[modify] https://crrev.com/6239bc6b7d27a33b9498fb237dd8a0553cfe3362/third_party/WebKit/Source/core/timing/WorkerPerformance.idl
[modify] https://crrev.com/6239bc6b7d27a33b9498fb237dd8a0553cfe3362/third_party/WebKit/Source/platform/RuntimeEnabledFeatures.json5

Comment 4 by npm@chromium.org, Aug 18 2017

Status: Fixed (was: Assigned)

Sign in to add a comment