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

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

From: Varun Singh via GitHub <sysbot+gh@w3.org>
Date: Sun, 03 Sep 2017 19:46:36 +0000
To: public-webrtc-logs@w3.org
Message-ID: <issue_comment.created-326826955-1504467984-sysbot+gh@w3.org>
I think destroying after X minutes is okay, and it might work for us,  although AFAICT many apps read stats at the end of the call, they might be caught unawares, if they are not polling periodically. (and their period needs to be shorter than X).

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.

GitHub Notification of comment by vr000m
Please view or discuss this issue at https://github.com/w3c/webrtc-stats/issues/235#issuecomment-326826955 using your GitHub account
Received on Sunday, 3 September 2017 19:46:35 UTC

This archive was generated by hypermail 2.4.0 : Saturday, 6 May 2023 21:19:42 UTC