nim-wiki/Hunting-leaks.md

138 B

  • Compile with -d:nimTypeNames
  • At strategic places in your program call dumpNumberOfInstances to see what the GC heap contains.