Vibe.TUI.Trace (vibe v0.2.2)

Copy Markdown View Source

Compile-time-gated TUI frame trace recording.

Summary

Types

t()

@type t() :: %Vibe.TUI.Trace{
  dir: Path.t(),
  seq: non_neg_integer(),
  started_at: integer()
}

Functions

audit(dir)

@spec audit(Path.t()) :: map()

entries(dir)

@spec entries(Path.t()) :: [map()]

frame(dir, index \\ :last)

@spec frame(Path.t(), pos_integer() | :last) :: {:ok, String.t()} | {:error, term()}

frame(trace, lines, reason)

@spec frame(t() | nil, [IO.chardata()], term()) :: t() | nil

record(trace, type, payload \\ %{})

@spec record(t() | nil, atom(), term()) :: t() | nil

snapshot(trace, snapshot, reason)

@spec snapshot(t() | nil, term(), term()) :: t() | nil

start(opts)

@spec start(keyword()) :: t() | nil

summary(dir)

@spec summary(Path.t()) :: map()