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? 回答1: It may not help you much, but anyway: You can