aboutsummaryrefslogtreecommitdiffstats
path: root/erts
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2018-02-15 16:41:28 +0100
committerSverker Eriksson <[email protected]>2018-02-20 17:37:20 +0100
commit2d3b4d0945190589098d42375b4738b004e7373a (patch)
treea1fc1a041ba5f8645d3f57e4a3313f99b4113601 /erts
parentdc0b345ae5374a422250c9d2e3bec63e6186afca (diff)
downloadotp-2d3b4d0945190589098d42375b4738b004e7373a.tar.gz
otp-2d3b4d0945190589098d42375b4738b004e7373a.tar.bz2
otp-2d3b4d0945190589098d42375b4738b004e7373a.zip
erts: Add binary vheap sizes to crash dump
Diffstat (limited to 'erts')
-rw-r--r--erts/emulator/beam/break.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/erts/emulator/beam/break.c b/erts/emulator/beam/break.c
index e4c2801ea2..127c14e21b 100644
--- a/erts/emulator/beam/break.c
+++ b/erts/emulator/beam/break.c
@@ -336,6 +336,12 @@ print_process_info(fmtfn_t to, void *to_arg, Process *p)
erts_print(to, to_arg, "Heap unused: %bpu\n", (p->hend - p->htop));
erts_print(to, to_arg, "OldHeap unused: %bpu\n",
(OLD_HEAP(p) == NULL) ? 0 : (OLD_HEND(p) - OLD_HTOP(p)) );
+ erts_print(to, to_arg, "BinVHeap: %b64u\n", p->off_heap.overhead);
+ erts_print(to, to_arg, "OldBinVHeap: %b64u\n", BIN_OLD_VHEAP(p));
+ erts_print(to, to_arg, "BinVHeap unused: %b64u\n",
+ BIN_VHEAP_SZ(p) - p->off_heap.overhead);
+ erts_print(to, to_arg, "OldBinVHeap unused: %b64u\n",
+ BIN_OLD_VHEAP_SZ(p) - BIN_OLD_VHEAP(p));
erts_print(to, to_arg, "Memory: %beu\n", erts_process_memory(p, !0));
if (garbing) {