Skip to main content

Module trace

Module trace 

Source
Expand description

Host black-box journal (WIDGET_DEBUG / debug builds). Host-side black-box journal for widget delivery diagnostics.

Enabled in debug builds, or in release when WIDGET_DEBUG=1. Events stay in a memory ring (cap 200); disk flush is never per-event — only on timer / explicit get_widget_trace / flush_widget_trace.

Structs§

TraceEntry
Timestamped TraceEvent in the ring.
TraceStore
Process-wide style store held on crate::desktop::Widget / mobile.
WidgetTrace
Snapshot returned by get_widget_trace.

Enums§

TraceEvent
One journal entry.

Constants§

TRACE_FILE_NAME
On-disk journal filename under the widgets data dir.

Functions§

trace_enabled
Whether the in-memory / disk journal is active.
trace_path
Default disk path under an app data dir.