instrument_flight_tracer (instrument v1.0.0)

View Source

Worker process for receiving and storing trace events.

This module implements a worker that receives trace events from the tracer NIF and inserts them into the shared ETS buffer. Each worker handles a subset of tracees based on pid hashing, distributing the load across multiple processes.

Features: - Uses off_heap message queue to reduce GC pressure - Batch inserts events to minimize ETS overhead - Handles overflow by evicting oldest entries

Summary

Functions

code_change(OldVsn, State, Extra)

handle_call(Request, From, State)

handle_cast(Msg, State)

handle_info(Info, State)

init(_)

start_link(Index)

-spec start_link(non_neg_integer()) -> {ok, pid()} | ignore | {error, term()}.

Starts a flight tracer worker.

terminate(Reason, State)