{"modulePath":"github.com/Open-MBEE/OpenSysML","version":"v0.13.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package runtrace\n\n## Variables\n\n```go\nvar ErrNoTrace = errors.New(\"the session records no trace\")\n```\nErrNoTrace reports a session with no recorded trace.\n\n## Functions\n\n```go\nfunc Render(kind Kind, trace *runtime.TraceRecorder, options Options) (*view.Rendering, error)\n```\nRender builds one run rendering from its trace.\n\n```go\nfunc Sequence(trace *runtime.TraceRecorder, options Options) *view.Rendering\n```\nSequence builds a message sequence from the trace.\n\n```go\nfunc Timeline(trace *runtime.TraceRecorder, options Options) *view.Rendering\n```\nTimeline builds a state-occupancy timeline from the trace.\n\n## Types\n\n```go\ntype Kind string\n```\nKind is a rendering of a recorded execution run.\n\n```go\nconst (\n\t// KindTimeline renders state occupancy over a run's clock time.\n\tKindTimeline Kind = \"timeline\"\n\t// KindSequence renders the messages recorded during a run.\n\tKindSequence Kind = \"sequence\"\n\t// DefaultLimit bounds the number of spans or messages in a run rendering.\n\tDefaultLimit = 200\n)\n```\n\n```go\nfunc Kinds() []Kind\n```\nKinds are the run renderings, in the order they are offered.\n\n```go\nfunc ParseKind(s string) (Kind, bool)\n```\nParseKind reports whether s names a run rendering.\n\n```go\ntype Options struct {\n\tLabel func(*runtime.Instance) string\n\tUntil float64\n\tLimit int\n}\n```\nOptions tune the labels, end instant and size of a run rendering.\n\n","path":"github.com/Open-MBEE/OpenSysML/internal/exec/runtrace","name":"runtrace","synopsis":"","isRedistributable":true}
