W3C home > Mailing lists > Public > public-webrtc-logs@w3.org > September 2017

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

From: Taylor Brandstetter via GitHub <sysbot+gh@w3.org>
Date: Wed, 06 Sep 2017 20:46:52 +0000
To: public-webrtc-logs@w3.org
Message-ID: <issue_comment.created-327608040-1504730803-sysbot+gh@w3.org>
> 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

This archive was generated by hypermail 2.3.1 : Tuesday, 4 June 2019 15:32:45 UTC