Current memory usage in Lisp -


i need find out, within common lisp program, how memory being used.

i'm given understand there no portable method (the standard function room prints information standard output in text form instead of returning value), sb-kernel:dynamic-usage works in sbcl.

what equivalents in other common lisp implementations? or there way solve problem should looking at?

it may not much, anyway:

you can capture output of (room) , parse it.

(with-output-to-string (*standard-output*)   (room)) 

above returns string output of room.

additionally may request memory size of process via external call standard unix command (if on unix).


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

html - Instapaper-like algorithm -

c# - How to execute a particular part of code asynchronously in a class -