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 Flash 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 debugger version 9.0.115.0 or later. For more information, see the flash.sampler methods overview.
Functions
Function | Description | |
---|---|---|
clearSamples | Clears the current set of Sample objects. | |
getGetterInvocationCount | Returns the number of times a get function was executed. | |
getInvocationCount | Returns the number of times a method was executed. | |
getMemberNames | Returns an object containing all members of a specified object, including private members. | |
getSampleCount | Returns the number of samples collected. | |
getSamples | Returns an object of memory usage Sample instances from the last sampling session. | |
getSetterInvocationCount | Returns the number of times a set function was executed. | |
getSize | Returns the size in memory of a specified object when used with the Flash Player 9.0.115.0 or later debugger version. | |
isGetterSetter | Checks to see if a property is defined by a get/set function. | |
pauseSampling | Stops the sampling process momentarily. | |
startSampling | Begins the process of collecting memory usage Sample objects. | |
stopSampling | Ends the process of collecting memory usage Sample objects and frees resources dedicated to the sampling process. |
Classes
Class | Description | |
---|---|---|
DeleteObjectSample | The DeleteObjectSample class represents objects that are created within a getSamples() stream; each DeleteObjectSample object corresponds to a NewObjectSample object. | |
NewObjectSample | The NewObjectSample class represents objects that are created within a getSamples() stream. | |
Sample | The Sample class creates objects that hold memory analysis information over distinct durations. | |
StackFrame | The StackFrame class provides access to the properties of a data block containing a function. |
Fri Mar 19 2010, 02:57 AM -07:00