I encountered a scenario that the Object instantiated in a event response function which is unable to be found by the profiler.
Here is the sample code:
public function myFunction(event:MyEvent):void
var data:MyData = new MyData();
Apparently, it is supposed MyData is present in the profiler after the execution of the above code. However, it isn't the case. Did anyone encounter this situation? Is it required to amend any configuration in order to make it be functional. I am looking forward to the answer. Thanks in advance.
MyData will be GC'd as soon as the function returns unless there is another
reference to it.