Skip to main content
Inspiring
March 13, 2018
Question

Memory leaks tools.

  • March 13, 2018
  • 3 replies
  • 2423 views

Any suggestions for a tool to investigate memory leaks? If none available, is there some AS3 API that would list objects larger than certain size in memory? Thanks!

This topic has been closed for replies.

3 replies

IGZN
Inspiring
March 14, 2018

Here's a good read about Scout basics:

Getting started with Adobe Scout | Adobe Developer Connection

Note the links at the bottom.

This one is about profiling memory, it's in French, but Chrome's built-in translator does an okay job if you need it in English:

Profiling de la mémoire avec Adobe Scout | Adobe Developer Connection

FlashDevelop is also great as rewb0rn​ mentioned.

Inspiring
March 15, 2018

Thanks for the article and the translation advice My mistake was not selecting multiple frames. Still, I find Scout to be not very useful for memory leak detection. In fact, I have not been able to find one single step-by-step tutorial on that topic where it's shown how to detect a memory leak. Too bad they stopped working on Scout. Could have been a really cool tool.

Inspiring
March 15, 2018

if you can not search yourself for about 2 seconds on google and/or Adobe Developer Connection
terms like "Adobe Scout Tutorials", "Adobe Scout memory profiling", etc.
I'm not sure who will be able to do that for you

Scout is the most advanced profiler you will get for Flash and AIR
it's there, it's free, nothing is missing, you just have to learn it

Lars Laborious
Legend
March 13, 2018

If you're using Animate you can also mark "Generate size report" in Publish Settings. But as IGZN mentions Adobe Scout is great for profiling your code.

natural_criticB837
Legend
March 13, 2018

FDT and FlashDevelop both have a memory sampler that will help you identify memory leaks. I don't know about other IDEs but maybe there are also some alternatives in FlashBuilder or IntelliJ.

Inspiring
March 15, 2018

I was able to detect memory leaks with FlashDevelop SWF Profiler in other projects, but this one uses flash.data.SQLConnection and other DB-related packages. They seems to confuse FlashDevelop debugger, so it just hangs.

IGZN
Inspiring
March 13, 2018

You can try Adobe Scout for profiling, or profile within your own the code with Sampler package (AS3 API)

Inspiring
March 13, 2018

>> You can try Adobe Scout for profiling, or profile within your own the code with Sampler package (AS3 API)

I tried Scout and it seems to show only the total memory allocation, which doesn't help much. Perhaps I missed something. Can Scout actually show objects in memory?

kheftel
Inspiring
March 13, 2018

if you compile your swf with telemetry enabled (don't remember the exact name of the option atm, sorry), scout can show you every object allocation in your swf, from the time you press scout's record button on.