+% We can get between-calls-delta directly from erlang:statistics(reductions),
+% but then if some other process also calls it - we'll get incorrect data on
+% the next call.
+% Managing deltas ourselves here, will at least reduce the possible callers to
+% only those with knowledge of our table ID.
+-spec of_reductions(t()) ->
+ non_neg_integer().
+of_reductions(?T{erlang_statistics=Table}) ->
+ Key = reductions,
+ {Current, _} = beam_stats_source:erlang_statistics(Key),
+ delta(Table, Key, Current).
+