Re: [whatwg/webidl] Record timing info for promise resolve/reject and callback (PR #1400)

> Hmm, but what if a task is used to fire an event and resolve a promise? You'd get two separate measurements if both are "reacted" to? Wouldn't it be more accurate to annotate the tasks?

Separating them to script entry points is much more actionable, especially since this is in the context of a single long animation frame (which is a task + the rendering update)... e.g. if the event handler takes 30ms and the function you put in `then` takes 5ms you probably want to know this.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/webidl/pull/1400#issuecomment-2228592763
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/webidl/pull/1400/c2228592763@github.com>

Received on Monday, 15 July 2024 14:07:24 UTC