protocol

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogWriter

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

func NewLogWriter

func NewLogWriter(db *gorm.DB, protocolId uint) *LogWriter

func (*LogWriter) Data

func (w *LogWriter) Data(source, data string)

func (*LogWriter) Error

func (w *LogWriter) Error(source, format string, params ...interface{})

func (*LogWriter) GetAvgPerformanceMetrics

func (w *LogWriter) GetAvgPerformanceMetrics() (cpu, fps, mem float32)

func (*LogWriter) Log

func (w *LogWriter) Log(source, format string, params ...interface{})

func (*LogWriter) LogPerformance

func (w *LogWriter) LogPerformance(checkpoint string, cpu, fps, mem float32, other string)

type PerformanceMetric

type PerformanceMetric struct {
	Count int
	CPU   float32
	FPS   float32
	MEM   float32
}

type ProtocolWriter

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

func NewProtocolWriter

func NewProtocolWriter(db *gorm.DB, testName string, run *models.TestRun) *ProtocolWriter

func (*ProtocolWriter) Close

func (w *ProtocolWriter) Close()

func (*ProtocolWriter) NewProtocol

func (w *ProtocolWriter) NewProtocol(projectId string, appId uint, dev models.Device, testname string) (*logProtocol, error)

func (*ProtocolWriter) RunID

func (w *ProtocolWriter) RunID() uint

func (*ProtocolWriter) SessionID

func (w *ProtocolWriter) SessionID() string

func (*ProtocolWriter) TrackStartupTime

func (w *ProtocolWriter) TrackStartupTime(deviceID uint, milliseconds int64)

Jump to

Keyboard shortcuts

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