Current memory usage in Lisp
I need to find out, from within a Common Lisp program, how much memory is currently being used. I'm given to understand there is no portable method (the standard function room prints the information to standard output in text form instead of returning it as a value), but sb-kernel:dynamic-usage works in SBCL. What are the equivalents in other Common Lisp implementations? Or is there another way to solve this problem I should be looking at? It may not help you much, but anyway: You can capture the output of (room) and parse it. (with-output-to-string (*standard-output*) (room)) Above returns a