Posts tagged "JavaScript Ajax Aptana AIR2 videos performance"

JavaScript Memory and CPU Profiling in Adobe AIR 2

One of the biggest challenges our team continued to hear from JavaScript developers using Adobe AIR 1.5 was that it was too difficult to track down CPU and memory issues within their HTML-based AIR applications. To help JavaScript developers detect and resolve these issues, we have introduced new runtime support for CPU and memory profiling of HTML-based AIR applications in the Adobe AIR 2 beta.

By doing so, tools like Aptana Studio can build powerful features that make analyzing memory and CPU usage of JavaScript execution within an AIR app a breeze. In the video above, Paul Colton, CEO of Aptana, provides an overview of how Aptana Studio is able to take advantage of the new runtime support and build powerful new features to assist developers in tracking down performance issues.

Some of the features included in the new Adobe AIR 2 Beta Plug-In for Aptana Studio include:

  • Live Objects View
    • Shows current information about how much current and cumulative memory is used by the application
    • Shows the number of current and cumulative instances of objects
  • Memory Usage View
    • Peak memory used
    • Current memory used
  • Memory Snapshot and Object References Views
    • Captures the number of class instances as well as memory used at a point in time
    • Select an object to view its references
    • Allocation trace information reveals where the objects are allocated
  • Loitering Objects View
    • Displays the memory usage difference between two memory snapshots
    • Helps detect loitering objects that are still present
  • Performance Profile View
    • Displays a list of all method calls along with amount of time for each to run
  • Method Statistics View
    • Presents information on the callers and callees of a function including statistics
    • Quickly navigate to location of the function in the code

Both Adobe AIR 2 and Adobe AIR 2 Beta Plug-in for Aptana Studio are currently in beta. If you run into issues or have feature requests, both the Adobe and Aptana teams would appreciate hearing your feedback on these new capabilities.

Next steps:

  1. Watch the tutorial video for a quick introduction on the new profiler capabilities
  2. Download the Adobe AIR 2 Beta Plug-In
  3. Discuss the feature on the Adobe AIR 2 Beta forums or post a comment below

Note: For Flex and Flash developers, support for application profiling has been available in Adobe Flex Builder for some time. We are very excited to bring this support to JavaScript developers as well.