W3C home > Mailing lists > Public > public-webrtc-logs@w3.org > January 2018

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

From: jan-ivar via GitHub <sysbot+gh@w3.org>
Date: Wed, 17 Jan 2018 23:50:56 +0000
To: public-webrtc-logs@w3.org
Message-ID: <issue_comment.created-358489011-1516233055-sysbot+gh@w3.org>
@alvestrand I like the event idea.

We might want to bikeshed on the names a bit (final = deleted = completed = ended).

There's also the question (thanks @na-g) of whether the event would contain an `RTCStatsReport` object or an `RTCStats` object (sadly `object` in WebIDL). E.g. is it one event per object:

```js
pc.onfinalstat = e => console.log(e.finalStat.kind == "track");
```
or plural:

```js
pc.onfinalstats = e => console.log([...e.finalStats.values()].some(s => s.kind == "track"));
```


I also filed https://github.com/w3c/webrtc-stats/issues/300 on some timing issues that came up to light while thinking about this.

-- 
GitHub Notification of comment by jan-ivar
Please view or discuss this issue at https://github.com/w3c/webrtc-stats/issues/235#issuecomment-358489011 using your GitHub account
Received on Wednesday, 17 January 2018 23:50:58 UTC

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