Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: fdfa626150
Fetching contributors…

Cannot retrieve contributors at this time

executable file 18 lines (18 sloc) 0.529 kb
#!/usr/bin/env escript
-export([main/1]).
main(_Any) ->
gruff:start(),
MemoryWriter = stat_writer:start(<<"Memory Info">>, fun() -> erlang:memory() end),
ProcessWriter = stat_writer:start(<<"Process Info">>,
fun() ->
{_, QueueLength} = erlang:process_info(erlang:whereis(gruff), message_queue_len),
[{processes, erlang:system_info(process_count)},
{gruff_queue_length, QueueLength}]
end
),
receive
after 20000 ->
MemoryWriter ! stop,
ProcessWriter ! stop,
elang:halt()
end.
Jump to Line
Something went wrong with that request. Please try again.