diff options
author | Dan Gudmundsson <[email protected]> | 2017-08-16 10:17:06 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2017-08-16 10:17:06 +0200 |
commit | 2383da3b7b82ba9b1680accf4b7b884827b395ae (patch) | |
tree | 07f1ccd5a5ec8401e95597bd68d2cf5b1b08cc4e /lib/runtime_tools | |
parent | 9e318b1b836f81d962341a5a78049ed9fb1a47c7 (diff) | |
parent | c08a7d382812ec8873a78b3e8eee2cffabf8e982 (diff) | |
download | otp-2383da3b7b82ba9b1680accf4b7b884827b395ae.tar.gz otp-2383da3b7b82ba9b1680accf4b7b884827b395ae.tar.bz2 otp-2383da3b7b82ba9b1680accf4b7b884827b395ae.zip |
Merge pull request #1484 from Gsantomaggio/otp_observer_add_info
Add more information to the Observer
OTP-14536
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() -> |