w3ctag / design-reviews

W3C specs and API reviews
Creative Commons Zero v1.0 Universal
333 stars 56 forks source link

User-defined script "entry points" for performance timing #1012

Open noamr opened 2 weeks ago

noamr commented 2 weeks ago

こんにちは TAG-さん!

I'm requesting an early TAG design review of User-defined script "entry points" for performance timing.

"Long animation frames" help diagnose main-thread bottlenecks and attribute them to causes like scripts. However, for overhead reasons, we currently only report script "entry points" (platform callbacks, event listeners, script blocks, platform-promise resolvers) - which is often not granular enough.

The proposal is to allow user code to define their functions as "entry points" that would be reported when attributing long animation frames.

Further details: