debugger

package
v0.0.0-...-80ad060 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DrawDiagram

func DrawDiagram(arrows []Arrow, settings DrawSettings) ([]byte, []byte, int)

func GetLogMessages

func GetLogMessages(testId lib.TestId, runId lib.RunId, reactor string, at int) [][]byte

func Heaps

func Heaps(testId lib.TestId, runId lib.RunId) []map[string][]byte

func Max

func Max(x, y int) int

func PrettyJson

func PrettyJson(input []byte) []byte

func WriteRepeat

func WriteRepeat(b *strings.Builder, s string, count int)

inlined version of b.WriteString(strings.Repeat(s,count))

Types

type Arrow

type Arrow struct {
	From    string
	To      string
	At      int
	Message string
	Dropped bool
}

type CrashInformation

type CrashInformation = map[int][]string

func GetCrashes

func GetCrashes(testId lib.TestId, runId lib.RunId) CrashInformation

type DrawSettings

type DrawSettings struct {
	MarkerSize int
	MarkAt     int
	Crashes    CrashInformation
}

type HeapDiff

type HeapDiff struct {
	Reactor string
	At      int
	Diff    []byte
}

func GetHeapTrace

func GetHeapTrace(testId lib.TestId, runId lib.RunId) []HeapDiff

func GetInitHeap

func GetInitHeap(testId lib.TestId) []HeapDiff

type NetworkEvent

type NetworkEvent struct {
	Message   string
	Args      []byte
	From      string
	SentAt    int
	To        string
	RecvAt    int
	Dropped   bool
	Simulated time.Time
}

func GetNetworkTrace

func GetNetworkTrace(testId lib.TestId, runId lib.RunId) []NetworkEvent

type SequenceDiagrams

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

func NewSequenceDiagrams

func NewSequenceDiagrams(testId lib.TestId, runId lib.RunId) *SequenceDiagrams

func (*SequenceDiagrams) At

func (s *SequenceDiagrams) At(at int) ([]byte, int)

func (*SequenceDiagrams) Header

func (s *SequenceDiagrams) Header() []byte

Jump to

Keyboard shortcuts

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