# flash.sampler

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.
| getLexicalScopes | Exposes the lexical scope of a Function so that captured scope objects (including activation objects and with scopes) are seen by the profiler as being retained by the Function instance.
| getMasterString | Returns the master string upon which this string depends, or null if this string does not depend on another string.
| 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.
| getSavedThis | Returns the saved "this" from a Method closure that you normal can't see from AS.
| 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.
| sampleInternalAllocs | Tells the sampler if it should create NewObjectSamples for internal allocations from the flash player.
| setSamplerCallback | Sets a callback function for the sampler - this function will be called when the sample stream is almost exhausted.
| 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.

© 2015 Adobe Systems Incorporated. All rights reserved.
Mon Apr 10 2017, 01:35 PM -07:00