ass

package
v0.0.0-...-7d2fe1b Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BakeRenderedObjectsFillables

func BakeRenderedObjectsFillables(o *types.RenderedObject) *types.RenderedObject

func RenderedObjectDepthSort

func RenderedObjectDepthSort(a, b *types.RenderedObject) int

Types

type Renderer

type Renderer struct {
	Header        []string
	RunningBuffer []*line.EventLine
	Display       shapes.Rectangle[float64]

	Statistics map[uint16]rendererStatsEntry
}

func NewRenderer

func NewRenderer(title string, frameRate float64, display shapes.Rectangle[float64]) *Renderer

func (*Renderer) AggregateStatistics

func (r *Renderer) AggregateStatistics() (s RendererStatistics)

func (*Renderer) Flush

func (r *Renderer) Flush(frameInfo types.FrameInformation) (result []string)

func (*Renderer) RenderFrame

func (r *Renderer) RenderFrame(frameInfo types.FrameInformation, frame types.RenderedFrame, keyframeInterval, flushInterval, flushCountLimit int) (result []string)

type RendererStatistic

type RendererStatistic struct {
	ObjectId uint16
	Frames   uint64
	Lines    uint64
	Size     uint64
}

func (RendererStatistic) Strings

func (s RendererStatistic) Strings() (string, string, string, string)

type RendererStatistics

type RendererStatistics []RendererStatistic

func (RendererStatistics) Reverse

func (s RendererStatistics) Reverse()

func (RendererStatistics) SortByFrames

func (s RendererStatistics) SortByFrames()

func (RendererStatistics) SortByLines

func (s RendererStatistics) SortByLines()

func (RendererStatistics) SortBySize

func (s RendererStatistics) SortBySize()

func (RendererStatistics) Strings

func (s RendererStatistics) Strings() (r []string)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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