diagnostics

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const CSVHeader = "audioSamplesRcv, audioBytesRcv, videoSamplesRcv, videoBytesRcv, heapobjects, alloc\n"

CSVHeader contains the header for the metrics file

Variables

This section is empty.

Functions

This section is empty.

Types

type DiagnosticsConsumer

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

DiagnosticsConsumer periodically logs samples received, bytes received and memory stats to a csv file.

func NewDiagnosticsConsumer

func NewDiagnosticsConsumer(outfile io.Writer, interval time.Duration) *DiagnosticsConsumer

NewDiagnosticsConsumer creates a new DiagnosticsConsumer

func (*DiagnosticsConsumer) Consume

Consume logs stats

func (*DiagnosticsConsumer) Stop

func (d *DiagnosticsConsumer) Stop()

Stop writing to the csv file

Jump to

Keyboard shortcuts

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