[plt-scheme] sizeof
You can create a bunch of them and compare the amount of memory used
before and afterwards (and divide).
Robby
On Tue, Jan 5, 2010 at 8:53 AM, Dave Gurnell <d.j.gurnell at gmail.com> wrote:
> 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
>
> _________________________________________________
> For list-related administrative tasks:
> http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>