diff options
author | Gabriele Santomaggio <[email protected]> | 2017-07-07 11:56:59 +0200 |
---|---|---|
committer | Gabriele Santomaggio <[email protected]> | 2017-08-11 14:23:27 +0200 |
commit | c08a7d382812ec8873a78b3e8eee2cffabf8e982 (patch) | |
tree | b4c73a3cdccef27142c09ef2fdf29eed620a700e /lib/runtime_tools | |
parent | 3da6adc679825d17ce65e7363af6554e5ee1661a (diff) | |
download | otp-c08a7d382812ec8873a78b3e8eee2cffabf8e982.tar.gz otp-c08a7d382812ec8873a78b3e8eee2cffabf8e982.tar.bz2 otp-c08a7d382812ec8873a78b3e8eee2cffabf8e982.zip |
Add System statistics / limit panel
Show the statistics, limits and percentage for atoms, processes,ports and ETS.
Backward compatibility with old versions, In case the valuse is missing it shows
the string Not available.
Diffstat (limited to 'lib/runtime_tools')
-rw-r--r-- | lib/runtime_tools/src/observer_backend.erl | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/lib/runtime_tools/src/observer_backend.erl b/lib/runtime_tools/src/observer_backend.erl index d36af257ce..7f0c1ac6e4 100644 --- a/lib/runtime_tools/src/observer_backend.erl +++ b/lib/runtime_tools/src/observer_backend.erl @@ -63,9 +63,7 @@ sys_info() -> end, {{_,Input},{_,Output}} = erlang:statistics(io), - [{process_count, erlang:system_info(process_count)}, - {process_limit, erlang:system_info(process_limit)}, - {uptime, element(1, erlang:statistics(wall_clock))}, + [{uptime, element(1, erlang:statistics(wall_clock))}, {run_queue, erlang:statistics(run_queue)}, {io_input, Input}, {io_output, Output}, @@ -86,7 +84,17 @@ sys_info() -> {thread_pool_size, erlang:system_info(thread_pool_size)}, {wordsize_internal, erlang:system_info({wordsize, internal})}, {wordsize_external, erlang:system_info({wordsize, external})}, - {alloc_info, alloc_info()} + {alloc_info, alloc_info()}, + {process_count, erlang:system_info(process_count)}, + {atom_limit, erlang:system_info(atom_limit)}, + {atom_count, erlang:system_info(atom_count)}, + {process_limit, erlang:system_info(process_limit)}, + {process_count, erlang:system_info(process_count)}, + {port_limit, erlang:system_info(port_limit)}, + {port_count, erlang:system_info(port_count)}, + {ets_limit, erlang:system_info(ets_limit)}, + {ets_count, length(ets:all())}, + {dist_buf_busy_limit, erlang:system_info(dist_buf_busy_limit)} | MemInfo]. alloc_info() -> |