Delta stats throughout (#615)

* Use delta stats throughout and avoid calculating deltas in telemetry

* Fix a few things after testing

* Remove debug

* Fix tests

* delete instead of setting to nil

* Point to the latest protocol
This commit is contained in:
Raja Subramanian
2022-04-16 21:11:32 +05:30
committed by GitHub
parent 7a3e446a65
commit a98d955284
15 changed files with 506 additions and 581 deletions
+4 -6
View File
@@ -1,15 +1,13 @@
package buffer
import "github.com/livekit/protocol/livekit"
type LayerStats struct {
TotalPackets uint32
TotalBytes uint64
TotalFrames uint32
Packets uint32
Bytes uint64
Frames uint32
}
type StreamStatsWithLayers struct {
RTPStats *livekit.RTPStats
RTPStats *RTPDeltaInfo
Layers map[int]LayerStats
}