Memory Help
- To: mathgroup at smc.vnet.net
- Subject: [mg23650] Memory Help
- From: hundalhm at my-deja.com
- Date: Sun, 28 May 2000 23:09:02 -0400 (EDT)
- References: <8gfsdb$bgo@smc.vnet.net> <8gicjr$i79@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
I am trying to find out where I am using memory in a Mathematica
Program. I am using the code below to see what memory is associated
with each symbol, but this doesn't seem to get all the memory
(MemoryInUse[] often reports significantly more). Is there another way
to see how the memory is used?
mybits[x_Symbol] := ByteCount[{DownValues[x], UpValues[x]}] ;
mybits[x_] := ByteCount[x];
{#, mybits[ToExpression[#]]} & /@ Names["Global`*"]
Cheers,
Hein Hundal
Sent via Deja.com http://www.deja.com/
Before you buy.