erlang/otp — pull request #295 by Etsukata (2014-03-14 13:05:55+00:00)
Title: Add erlang:statistic(async_queue) to get the queue length of async queue

Add erlang:statistic(async_queue) and erlang:statistics(async_queues).

erlang:statistics(async_queue) returns the total length of the
async queues, that is, the number of asynchronous works that are ready to run on
all async queues like erlang:statistics(run_queue).

erlang:statistics(async_queues) returns the tuple with length of each
async queue like erlang:statistics(run_queues).

These functions can be used to measure the file I/O load and balance of async works
on async threads.