ever tried it with Nim! I think
it's possible from what I have read. There's a stack ulimit set on most Linux
distros, but that would probably give a stack overflow error not an out of
memory error.
There are likely some Linux tools you can use to inspect a process's heap. I
don't develop on Linux, but for example, on macOS I would turn to tools like
`heap` and `MallocStackLogging`.
Inject `echo getOccupiedMem()` into strategic places in your program.
Or maybe collect the information in a database.
Or maybe by not collecting everything into a single tree.
Usually there is a correlation between what you do and the amount of memory it
requires, the more memory it takes, the
Another question: My program exits with an "out of memory" failure.
I'm on linux, and I have ~ 8gb of ram on this computer. The program is parsing
files in a directory, collecting all this info in a tree, and then generating
from this tree. Now, the current folder is pretty big