The unsupported hack for kicking the GC which you should only do for
testing purposes is this:

 

try 
{
var lc1:LocalConnection = new LocalConnection();
var lc2:LocalConnection = new LocalConnection();

lc1.connect('name');
lc2.connect('name');
}
catch (e:Error) {}

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of moonusamy
Sent: Wednesday, March 21, 2007 1:21 PM
To: [email protected]
Subject: [flexcoders] Measuring memory consumption in Flash Player

 


I'm using System.totalMemory calls before and after some remote server
calls to measure impact on memory of loading some data from the
server. I realize this can be very inaccurate and misleading since I
don't know when the garbage collection kicks in. I understand there is
no way to force garbage collection with some kind of System.gc() call.
So how does one get an accurate measure of memory impact of a set of
operations?

Thanks
Vijay

 

Reply via email to