bennyxqg / lua-alchemy

Automatically exported from code.google.com/p/lua-alchemy
0 stars 0 forks source link

Add AS3 memory leak test suite #125

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
At least something like this

var before:Number = flash.system.System.totalMemory;

for (var i = 0; i < 1000; ++i)
{
  luaAlchemyCall();

  flash.system.System.gc(); // Probably works under debug players only

  var timer:Timer = new Timer(100, 1);
  timer.addEventListener("timer", checkThatNotALotOfMemoryEaten);
  timer.start();
}

Original issue reported on code.google.com by aglad...@gmail.com on 20 Sep 2009 at 2:17

GoogleCodeExporter commented 9 years ago

Original comment by aglad...@gmail.com on 21 Sep 2009 at 5:01