I would like to measure how much memory an expression is using for my program or even an expression?
Is there an easy way to do this in Racket?
Documentation involves using some custodian, which I am not sure how it works…..
Demo code snippet appreciated.
Since i don’t use racket as my lisp i can’t be sure if there are builtins, but in the
meantime you can use this:
https://github.com/samth/gcstats
cheers.