docs for the heap dump feature

This commit is contained in:
Andreas Rumpf 2017-01-15 10:30:33 +01:00
commit 915cc86f5d
2 changed files with 18 additions and 0 deletions

View file

@ -26,6 +26,7 @@ when defined(nimTypeNames):
it = it.nextType
template decTypeSize(cell, t) =
# XXX this needs to use atomics for multithreaded apps!
when defined(nimTypeNames):
if t.kind in {tyString, tySequence}:
let len = cast[PGenericSeq](cellToUsr(cell)).len