Skip to content

Commit c0bd3ba

Browse files
Merge pull request #858 from rabbitmq/rabbitmq-management-211
Report queue reductions per second and GC options
2 parents 0923c96 + c72afe6 commit c0bd3ba

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/rabbit_amqqueue_process.erl

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,9 @@
113113
slave_pids,
114114
synchronised_slave_pids,
115115
recoverable_slaves,
116-
state
116+
state,
117+
reductions,
118+
garbage_collection
117119
]).
118120

119121
-define(CREATION_EVENT_KEYS,
@@ -922,6 +924,12 @@ i(recoverable_slaves, #q{q = #amqqueue{name = Name,
922924
end;
923925
i(state, #q{status = running}) -> credit_flow:state();
924926
i(state, #q{status = State}) -> State;
927+
i(garbage_collection, _State) ->
928+
{garbage_collection, GC} = erlang:process_info(self(), garbage_collection),
929+
GC;
930+
i(reductions, _State) ->
931+
{reductions, Reductions} = erlang:process_info(self(), reductions),
932+
Reductions;
925933
i(Item, #q{backing_queue_state = BQS, backing_queue = BQ}) ->
926934
BQ:info(Item, BQS).
927935

0 commit comments

Comments
 (0)