You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The spec says "The user agent may choose to limit how many resources are included as PerformanceResourceTiming objects in the Performance Timeline"
However it is not clear (to me) whether this applies to the default buffer size, or the user agent can choose to clear the buffer when needed. Please clarify.
For background, see: https://crbug.com/685452 for an example where 16k objects (FB is setting buffer to 100k) are bloating memory.
The text was updated successfully, but these errors were encountered:
So on Facebook we're using a fairly large buffer because there are times when we want to ensure that we're capturing all events within a certain time window. We're going to make a change to clear out the buffer of everything older than a specified time limit every so often, but it'd be nice (and probably more performant) if the api just supported this natively. This way the cleanup could only happen if it was actually needed.
This is a general question regarding buffers of various Performance Timeline items. Moving to Performance Timeline.
This could be achieved by any UA by firing the onbufferfull event allowing the web site to pull events BEFORE clearing the buffer. Because this behavior may not be handled by web sites, it would need to be specced clearly and may need some outreach to sites such as Facebook @n8schloss
The spec says "The user agent may choose to limit how many resources are included as PerformanceResourceTiming objects in the Performance Timeline"
However it is not clear (to me) whether this applies to the default buffer size, or the user agent can choose to clear the buffer when needed. Please clarify.
For background, see: https://crbug.com/685452 for an example where 16k objects (FB is setting buffer to 100k) are bloating memory.
The text was updated successfully, but these errors were encountered: