Contact emails
n...@chromium.org, igri...@chromium.org
Explainer
https://github.com/w3c/performance-timeline/issues/74
More discussion at https://groups.google.com/a/chromium.org/forum/?utm_medium=email&utm_source=footer#!msg/progressive-web-metrics/nLcOw4gN9wc/Gic_NddNAwAJ
Spec
https://w3c.github.io/performance-timeline/#takerecords-method
Summary
The takeRecords method returns a copy of the performance entries in the PerformanceObserver’s buffer, and also clears this buffer. This aligns PerformanceObserver with other *Observer implementations, like MutationObserver and IntersectionObservers, which have similar methods.
Is this feature supported on all six Blink platforms (Windows, Mac, Linux, Chrome OS, Android, and Android WebView)?
Yes.
Debuggability
Available in console.
Risks
Interoperability and Compatibility
Low. It's a new feature and it aligns PerformanceObserver with other *Observer APIs.
Edge: public support (https://github.com/w3c/performance-timeline/pull/98#issuecomment-356051848)
Safari: public support (https://github.com/w3c/performance-timeline/pull/98#issuecomment-356130841)
Firefox: no signals
Ergonomics
This API is improves ergonomics. It would currently be complicated to simulate flushing the PerformanceObserver and obtaining its current entries (and certain preprocessing would be needed ahead of time).
Activation
This API is easy to use. In most cases, we expect this API to be used to provide more data to analytics. If this API isn't present, some data produced before disconnecting the observer or unloading the page won't be reported. No additional logic will be required to handle these cases.
Is this feature fully tested by web-platform-tests? Link to test suite results from wpt.fyi.
There is a test at:
Entry on the feature dashboard
Fits under existing Performance Observer entry: https://www.chromestatus.com/feature/5945504202489856
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/3318ed53-6576-4b35-8c13-d5741e0bce1b%40chromium.org.
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAARdPYdw7WS9RkBShDrkRiBg%2BJsPqu1YPwmoUJvjTrQpuakYmg%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/b7b2d69b-83ba-447b-a2c7-3be3d267a674%40chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/32ae1005-61ad-429e-ad57-e9ba4a0b4705%40chromium.org.
Lgtm3
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/3318ed53-6576-4b35-8c13-d5741e0bce1b%40chromium.org.
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/b7b2d69b-83ba-447b-a2c7-3be3d267a674%40chromium.org.
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/32ae1005-61ad-429e-ad57-e9ba4a0b4705%40chromium.org.
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAJUhtG_ajyDdsKvrN4WeaEOhv0AAbxctD23QF5Zs2paEa7ckrQ%40mail.gmail.com.