Skip to main content

Module leader_trace

Module leader_trace 

Source
Expand description

Optional per-view tracing of the leader’s duty.

With no tracer registered each event site costs one Option check. Timestamps are wall-clock unix-epoch ns, the same clock as the bench’s MetricsCollector, so the streams join on view + ts_ns.

Structs§

CsvLeaderTracer
LeaderTracer appending view,node_id,event,ts_ns rows to a CSV file.
Shared 🔒

Enums§

LeaderEvent
Per-view events in rough order. Most fire on every node; the proposal and block builder events fire on the leader of the view only.

Constants§

FLUSH_INTERVAL 🔒

Traits§

AsViewU64
LeaderTracer

Functions§

now_ns
spawn_flusher 🔒

Type Aliases§

LeaderTracerHandle