app

package
v0.0.0-...-2d66d2e Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2023 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

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

func InitApp

func InitApp() *App

func NewApp

func NewApp(
	process *Process,
	plot *Plot,
) *App

func (*App) Draw

func (p *App) Draw(screen *ebiten.Image)

func (*App) Layout

func (p *App) Layout(_, _ int) (int, int)

func (*App) Update

func (p *App) Update() error

type Plot

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

func NewPlot

func NewPlot() *Plot

func (*Plot) CPU

func (p *Plot) CPU(canvas draw.Canvas, procs map[string][]time.Duration)

type Process

type Process struct {
	Procs map[string][]time.Duration
}

func NewProcess

func NewProcess() *Process

func (*Process) Run

func (p *Process) Run(ctx context.Context)

Jump to

Keyboard shortcuts

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