Re: ByteCount for Global symbols
- To: mathgroup at smc.vnet.net
- Subject: [mg36607] Re: ByteCount for Global symbols
- From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
- Date: Fri, 13 Sep 2002 23:33:04 -0400 (EDT)
- Organization: Universitaet Leipzig
- References: <alrt05$h9h$1@smc.vnet.net>
- Reply-to: kuska at informatik.uni-leipzig.de
- Sender: owner-wri-mathgroup at wolfram.com
Hi, whats wrong with ToExpression[#, StandardForm, Hold] & /@ Names["Global`*"] /. Hold[a_] :> ByteCount[OwnValues[a]] Regards Jens DrBob wrote: > > I want to make a list of all symbols in the Global context, as in > > Names["Global`*"] > > and compute a ByteCount for each symbol's OwnValues -- without > evaluating the symbols. > > It seems possible in principle, but I haven't found a way. > > Bobby Treat