runtrace

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2026 License: Apache-2.0 Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoTrace = errors.New("the session records no trace")

ErrNoTrace reports a session with no recorded trace.

Functions

func Render

func Render(kind Kind, trace *runtime.TraceRecorder, options Options) (*view.Rendering, error)

Render builds one run rendering from its trace.

func Sequence

func Sequence(trace *runtime.TraceRecorder, options Options) *view.Rendering

Sequence builds a message sequence from the trace.

func Timeline

func Timeline(trace *runtime.TraceRecorder, options Options) *view.Rendering

Timeline builds a state-occupancy timeline from the trace.

Types

type Kind

type Kind string

Kind is a rendering of a recorded execution run.

const (
	// KindTimeline renders state occupancy over a run's clock time.
	KindTimeline Kind = "timeline"
	// KindSequence renders the messages recorded during a run.
	KindSequence Kind = "sequence"
	// DefaultLimit bounds the number of spans or messages in a run rendering.
	DefaultLimit = 200
)

func Kinds

func Kinds() []Kind

Kinds are the run renderings, in the order they are offered.

func ParseKind

func ParseKind(s string) (Kind, bool)

ParseKind reports whether s names a run rendering.

type Options

type Options struct {
	Label func(*runtime.Instance) string
	Until float64
	Limit int
}

Options tune the labels, end instant and size of a run rendering.

Jump to

Keyboard shortcuts

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