Current memory usage in Lisp

房东的猫 提交于 2019-12-04 08:38:47

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 string with the output of ROOM.

Additionally it may help to request the memory size of the process via an external call to a standard unix command (if you are on Unix).

For things which virtually every implementation supports, but not in the same way (because it's not in CL), one common approach is to make a library called trivial-whatever.

If you started a package like trivial-memory, and supplied the first implementation, I'm sure we could get everybody to contribute the function for their own favorite Lisp compiler in short order. :-)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!