output

package
v0.0.0-...-c3304bb Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package output renders snapshots for humans and machines.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatMetric

func FormatMetric(m accel.Metric) string

FormatMetric is exported for the TUI.

func Human

func Human(out io.Writer, snap *accel.Snapshot) error

Human writes a one-shot human-readable report in British English.

func HumanBytes

func HumanBytes(n uint64) string

HumanBytes is exported for the TUI.

func JSON

func JSON(w io.Writer, snap *accel.Snapshot, pretty bool) error

JSON writes the snapshot as schema-versioned JSON.

func JSONValue

func JSONValue(w io.Writer, v any, pretty bool) error

JSONValue writes any value as JSON, used for the doctor report.

func SortedTelemetryKeys

func SortedTelemetryKeys(m map[string]accel.Metric) []string

SortedTelemetryKeys is exported for the TUI, which renders the same ordering.

Types

This section is empty.

Jump to

Keyboard shortcuts

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