Skip to content

performance api#9

Draft
mhuebert wants to merge 1 commit intomasterfrom
performance-api
Draft

performance api#9
mhuebert wants to merge 1 commit intomasterfrom
performance-api

Conversation

@mhuebert
Copy link
Copy Markdown
Contributor

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.

@plexus
Copy link
Copy Markdown
Contributor

plexus commented Jul 21, 2020

Cool stuff!

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.

2 participants