[frame-timing] spec updates & measuring work/cpu-time

Latest draft: http://w3c.github.io/frame-timing/

Highlights of recent updates:
- onframetimingbufferfull is now an EventHandler (matches other specs)
- PerformanceMainFrameTiming > PerformanceRenderTiming
- PerformanceRenderTiming: startTime and duration are now defined in terms
of rAF
- "cost" (previously known as "cpuTime") is removed from the spec

For the last bit on "cost" we've iterated on a couple of ideas and arrived
at a conclusion that (a) this is a hard problem that deserves more
discussion, (b) this functionality may be better handled as a separate perf
API/spec. A summary doc:

https://docs.google.com/document/d/1Nf6Gp8pptlGOJ3_2CY469aYOmSPf7YzGRRfWwF75f6k/

^ would love to hear any thoughts or feedback. In particular, I'll
highlight the three questions at the end:

(1) Should there be a standalone API for providing this sort of data to
developers? e.g. start() -> stop() interface that allows you to get a
profile between two arbitrary time points? If so, what kind of information
could/should we surface there?
(2) Can the cpu-time data be reliably obtained across all the various
platforms?
(3) Other gotchas or alternatives we’ve not considered here?

ig

P.S. Last but not least, we're working on implementing the current Frame
Timing draft in Blink:
https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/CJkKG3Uoyvk

Received on Friday, 9 January 2015 01:21:39 UTC