cachepolicy

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Card

type Card struct{ Label, Value, Caption string }

type Chart

type Chart struct {
	Curves Curves
	Marker int
}

Chart draws the two hit-rate curves against cache size, with a size marker.

func (Chart) Render

func (c Chart) Render() Rendered

type Curves

type Curves struct {
	Sizes    []int
	LRU      []float64
	LFU      []float64
	Workload int
}

Curves holds both policies' hit-rate over the swept cache sizes.

type Markdown

type Markdown string

func (Markdown) Render

func (m Markdown) Render() Rendered

type Readout

type Readout struct{ Cards []Card }

func (Readout) Render

func (r Readout) Render() Rendered

Render draws the verdict cards. A composite value with no Render method carries no MIME and the client hides the cell — so the cards render themselves. Engine-called, not a cell, so fmt here is fine.

type Rendered

type Rendered struct{ MIME, Data string }

type Trace

type Trace struct {
	Refs     []int
	Workload int
}

Trace is the generated access stream plus the workload that shaped it.

Jump to

Keyboard shortcuts

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