[plt-scheme] sizeof

From: Dave Gurnell (d.j.gurnell at gmail.com)
Date: Tue Jan 5 09:53:12 EST 2010

Hi all,

Is there a simple way of estimating the number of bytes of RAM that a particular piece of data is occupying?

e.g.

    (sizeof some-large-data-structure) ; ==> 1024 bytes

I saw the sizeof package on PLaneT but it looks like that's for FFI structures, not scheme ones.

Many thanks,

-- Dave



Posted on the users mailing list.