The flash.sampler package contains methods and classes for tracking procedure calls so that you can profile memory usage and optimize applications. This package is used by the profiling agent distributed with Adobe Flex Builder, and is provided for your use for customizing the profiling agent or building your own memory tests. After you know where an application uses the most memory, you can focus your optimization effort and speed up the application's performance. The classes and methods in this package require the Flash Player 9.0.115.0 debugger version or later. For more information, see the flash.sampler methods overview.



Functions
 FunctionDescription
 clearSamplesClears the current set of Sample objects.
 getGetterInvocationCountReturns the number of times a get function was executed.
 getInvocationCountReturns the number of times a method was executed.
 getMemberNamesReturns an object containing all members of a specified object, including private members.
 getSampleCountReturns the number of samples collected.
 getSamplesReturns an object of memory usage Sample instances from the last sampling session.
 getSetterInvocationCountReturns the number of times a set function was executed.
 getSizeReturns the size in memory of a specified object when used with the Flash Player 9.0.115.0 or later debugger version.
 isGetterSetterChecks to see if a property is defined by a get/set function.
 pauseSamplingStops the sampling process momentarily.
 startSamplingBegins the process of collecting memory usage Sample objects.
 stopSamplingEnds the process of collecting memory usage Sample objects and frees resources dedicated to the sampling process.
Classes
 ClassDescription
 DeleteObjectSampleThe DeleteObjectSample class represents objects that are created within a getSamples() stream; each DeleteObjectSample object corresponds to a NewObjectSample object.
 NewObjectSampleThe NewObjectSample class represents objects that are created within a getSamples() stream.
 SampleThe Sample class creates objects that hold memory analysis information over distinct durations.
 StackFrameThe StackFrame class provides access to the properties of a data block containing a function.