w3c / performance-timeline

Performance Timeline
https://w3c.github.io/performance-timeline/
Other
111 stars 27 forks source link

`droppedEntriesCount` can be inconsistent with reported entries #214

Open rubennorte opened 2 months ago

rubennorte commented 2 months ago

I think the determination of the droppedEntriesCount for a given observer can be inconsistent with the data reported to the observer. This is because we flush the entries in the buffers when using the buffered option and start listening to entries when calling observe, but the determination of droppedEntriesCount happens when the callback is invoked.

Let's take the following example:

I think the determination of droppedEntriesCount should be made in observe, not in the execution of its callback.

clelland commented 1 month ago

Hi @rubennorte! Thanks for the report - do you think you'd be able to write a WPT to demonstrate this?