Skip to main content

Module crash

Module crash 

Source
Expand description

Crash reporting: panic hook, native fault capture, local report files. pub so the binaries install the hooks and the editor composes the recent-log ring layer into its tracing subscriber.

Structs§

RingLayer
A tracing layer that keeps the most recent INFO-and-above log lines in a bounded in-memory ring for inclusion in crash reports. Passive and cheap: lines are formatted into recycled fixed-size buffers under a short lock, and nothing is emitted per frame by the layer itself.

Functions§

install
Install the process-wide crash hooks: a panic hook that writes a report and chains to the previously installed hook, plus (macOS/Windows) a native fault handler that writes a minidump. Binaries call this first thing at startup; later calls are no-ops.
note
Record a context note included in subsequent crash reports, replacing any previous value for key. Bounded: at most 16 keys, keys truncate at 32 bytes and values at 128; further keys are dropped.