statsjsonl

package
v0.17.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 12, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Sample

type Sample struct {
	Timestamp           float64          `json:"ts"`
	Client              string           `json:"client"`
	Host                string           `json:"host"`
	Instance            int              `json:"instance"`
	Viewer              string           `json:"viewer"`
	BitrateBps          float64          `json:"bitrate_bps"`
	FPS                 float64          `json:"fps"`
	DecoderSmoothFPS    float64          `json:"dec_sm_fps"`
	DecoderBufferFPS    float64          `json:"dec_buf_fps"`
	EstimatedDecoderFPS int              `json:"est_dec_fps"`
	FrameJitterUS       float64          `json:"frame_jitter_us"`
	PacketJitterUS      float64          `json:"packet_jitter_us"`
	FramesComplete      int64            `json:"frames_complete"`
	FramesLost          int64            `json:"frames_lost"`
	PLISent             int64            `json:"pli_sent"`
	MaxRecvSID          uint8            `json:"max_recv_sid"`
	MaxRecvTID          uint8            `json:"max_recv_tid"`
	Errors              map[string]int32 `json:"errors,omitempty"`
}

Sample is the JSON structure written to the JSONL file.

type Writer

type Writer struct {
	// contains filtered or unexported fields
}

Writer writes JSONL stats samples to a file.

func New

func New(dir string, host string, instance int) (*Writer, error)

New creates a Writer that writes to {dir}/bench-rtcbench-{host}-{instance}.jsonl.

func (*Writer) Close

func (w *Writer) Close() error

Close flushes and closes the underlying file.

func (*Writer) Subscriber

func (w *Writer) Subscriber() func(vp9_stats.Period, vp9_stats.VideoQualitySample)

Subscriber returns a function compatible with vp9_stats.Publisher.AddSubscriber.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL