Re: [webrtc-stats] Is keeping stats around a memory problem?

> AFAICT many apps read stats at the end of the call, they might be caught unawares, if they are not polling periodically

Good point.

> Additionally, maybe throwing an event when an object is destroyed? the app and the third party libs can attach handlers to it and call getStats(), which would mean that apps that do not poll regularly have a chance to collect/snapshot the stats data.

This is starting to sound more complicated than it's worth... Maybe we should table this issue until it turns out to be a real problem for someone.

Also, couldn't an implementation solve this problem by storing stats for deleted objects in a temporary file, and reading from it when `getStats` is called?

-- 
GitHub Notification of comment by taylor-b
Please view or discuss this issue at https://github.com/w3c/webrtc-stats/issues/235#issuecomment-327608040 using your GitHub account

Received on Wednesday, 6 September 2017 20:46:47 UTC