freerange icon indicating copy to clipboard operation
freerange copied to clipboard

performance api

Open mhuebert opened this issue 5 years ago • 1 comments

Example of using the performance api to measure event-handling timings. These can be nicely viewed in devtools Performance tab profiles. In the example below, we see the doc/tx event taking the majority of time spent in the keypress event (these timings are shown in the upper section, while the call stack is shown at the bottom):

image

This PR is not production-ready - that would require an ability to turn this on/off, and ensure that the apis are available in the browser before using them, as well as further thought as to what exactly we should be measuring.

mhuebert avatar Jul 20 '20 14:07 mhuebert

Cool stuff!

plexus avatar Jul 21 '20 09:07 plexus