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

Visit on Github.

Opened Nov 6, 2024

こんにちは 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:

  • I have reviewed the TAG's Web Platform Design Principles
  • The group where the incubation/design work on this is being done (or is intended to be done in the future): WebPerfWG
  • The group where standardization of this work is intended to be done ("unknown" if not known): WebPerfWG
  • Existing major pieces of multi-implementer review or discussion of this design:
  • Major unresolved issues with or opposition to this design: need to check if microtask support is feasible in all implementations.
  • This work is being funded by: Google

Discussions