diff options
author | Sverker Eriksson <[email protected]> | 2018-02-19 11:59:12 +0100 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2018-02-20 17:37:21 +0100 |
commit | cff79c76c3fb574addb5c9364f7c4c7d48a75907 (patch) | |
tree | dd27a97ebe02c91dc75e1c74b0d2849b5d1dc9e5 /erts/emulator/beam/io.c | |
parent | 43edeef1d224ace49dac13d6a5778cd0b50f1d25 (diff) | |
download | otp-cff79c76c3fb574addb5c9364f7c4c7d48a75907.tar.gz otp-cff79c76c3fb574addb5c9364f7c4c7d48a75907.tar.bz2 otp-cff79c76c3fb574addb5c9364f7c4c7d48a75907.zip |
erts,observer: Add more port info to crash dump
Diffstat (limited to 'erts/emulator/beam/io.c')
-rw-r--r-- | erts/emulator/beam/io.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/erts/emulator/beam/io.c b/erts/emulator/beam/io.c index 3a5ddde5f4..c6444fd440 100644 --- a/erts/emulator/beam/io.c +++ b/erts/emulator/beam/io.c @@ -5199,6 +5199,14 @@ print_port_info(Port *p, fmtfn_t to, void *arg) } else { erts_print(to, arg, "Port controls linked-in driver: %s\n",p->name); } + erts_print(to, arg, "Input: %beu\n", p->bytes_in); + erts_print(to, arg, "Output: %beu\n", p->bytes_out); + erts_print(to, arg, "Queue: %beu\n", erts_ioq_size(&p->ioq)); + { + Eterm port_data = erts_port_data_read(p); + if (port_data != am_undefined) + erts_print(to, arg, "Port Data: %T\n", port_data); + } } void |