instrument_atomics (instrument v1.1.4)

View Source

Pure-Erlang atomic slots backing the histogram bucket counts and sum.

Thin wrapper over the OTP atomics module providing both signed-integer slots (inc_int_at/get_int_at) and IEEE-754 double slots via bit-cast with a CAS retry loop (inc_at/set_at/get_at).

Slots are 1-indexed, matching atomics.

Summary

Functions

get_at(Ref, Ix)

get_int_at(Ref, Ix)

inc_at(Ref, Ix, Delta)

inc_int_at(Ref, Ix, V)

new(N)

Allocate an N-slot atomics ref. Caller decides slot semantics.

set_at(Ref, Ix, V)