aboutsummaryrefslogtreecommitdiffstats
path: root/lib/observer/src/cdv_port_cb.erl
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2018-02-19 11:59:12 +0100
committerSverker Eriksson <[email protected]>2018-02-20 17:37:21 +0100
commitcff79c76c3fb574addb5c9364f7c4c7d48a75907 (patch)
treedd27a97ebe02c91dc75e1c74b0d2849b5d1dc9e5 /lib/observer/src/cdv_port_cb.erl
parent43edeef1d224ace49dac13d6a5778cd0b50f1d25 (diff)
downloadotp-cff79c76c3fb574addb5c9364f7c4c7d48a75907.tar.gz
otp-cff79c76c3fb574addb5c9364f7c4c7d48a75907.tar.bz2
otp-cff79c76c3fb574addb5c9364f7c4c7d48a75907.zip
erts,observer: Add more port info to crash dump
Diffstat (limited to 'lib/observer/src/cdv_port_cb.erl')
-rw-r--r--lib/observer/src/cdv_port_cb.erl11
1 files changed, 9 insertions, 2 deletions
diff --git a/lib/observer/src/cdv_port_cb.erl b/lib/observer/src/cdv_port_cb.erl
index b5cbe8132d..c0a6d87bce 100644
--- a/lib/observer/src/cdv_port_cb.erl
+++ b/lib/observer/src/cdv_port_cb.erl
@@ -34,7 +34,8 @@
-define(COL_CONN, ?COL_ID+1).
-define(COL_NAME, ?COL_CONN+1).
-define(COL_CTRL, ?COL_NAME+1).
--define(COL_SLOT, ?COL_CTRL+1).
+-define(COL_QUEUE, ?COL_CTRL+1).
+-define(COL_SLOT, ?COL_QUEUE+1).
@@ -44,6 +45,7 @@ col_to_elem(?COL_ID) -> #port.id;
col_to_elem(?COL_CONN) -> #port.connected;
col_to_elem(?COL_NAME) -> #port.name;
col_to_elem(?COL_CTRL) -> #port.controls;
+col_to_elem(?COL_QUEUE) -> #port.queue;
col_to_elem(?COL_SLOT) -> #port.slot.
col_spec() ->
@@ -51,6 +53,7 @@ col_spec() ->
{"Connected", ?wxLIST_FORMAT_LEFT, 120},
{"Name", ?wxLIST_FORMAT_LEFT, 150},
{"Controls", ?wxLIST_FORMAT_LEFT, 200},
+ {"Queue", ?wxLIST_FORMAT_RIGHT, 100},
{"Slot", ?wxLIST_FORMAT_RIGHT, 50}].
get_info(_) ->
@@ -98,7 +101,11 @@ info_fields() ->
[{"Name", name},
{"Connected", {click,connected}},
{"Slot", slot},
- {"Controls", controls}]},
+ {"Controls", controls},
+ {"Input bytes", input},
+ {"Output bytes", output},
+ {"Queue bytes", queue},
+ {"Port data", port_data}]},
{scroll_boxes,
[{"Links",1,{click,links}},
{"Monitors",1,{click,monitors}}]}].