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.

28 Responses to JavaScript Memory and CPU Profiling in Adobe AIR 2

  1. Ian Drake says:

    Wow. This looks awesome! I can’t wait for this to get released!

  2. @Ian. Thank you for the note! The beta is available now. http://www.aptana.org/air and the final version will ship when AIR 2 goes live.

  3. Mike says:

    Why on earth is SVG not supported?

    I thought that AIR was supposed to be great for people with web dev skills. That group surely includes people who have never used flash!

  4. @Mike – There were a few posts on Ajaxian.com asking about why we do not provide support for SVG. The short answer is that we have not received many requests for SVG support and that adding it actually increases the overall file size of the AIR runtime. Can I ask how you are using SVG and why you feel it’s important in AIR? Here’s the link to the response I made on Ajaxian (scroll to the comments section). http://ajaxian.com/archives/adobe-air-2-gets-an-updated-engine-and-memory-profiling

    Thanks,
    -Rob, Adobe AIR Team

  5. Evgeny says:

    Hello Adobe Air team,

    I am one of the developers who relies on your platform supporting SVG, I am building a drawing application in SVG using raphael, and I am hoping it’s going to be implemented in the next version of Air, so I can implement it into my AIR app. The requests for SVG will continue to rise with the rise of integration of HTML5

    Please add it in your next release !

  6. Sohbet says:

    I am hoping it’s going to be implemented in the next version of Air, so I can implement it into my AIR app. The requests for SVG will continue to rise with the rise of integration

  7. Jack Mcgreen says:

    Just desired to say how’s things and tell you that I personally have lately been coming back at this point for many years, always hiding throughout the shadows and not really speaking my head. Well it’s time to settle my dignity and inform you and your family, as a frequent target audience the fact that My spouse and i truly love your own web page and desire you continue on this particular spiritual quest of words. Hola from everyone

  8. Fatma says:

    Will there be a continuation of this post?

  9. imleme says:

    Hello, I found this blog when i was searching Yahoo for sites related to this content. I have say, your site is good. I like the design too, its pleasing. I don’t have the time now to fully read your blog but I have bookmarked it and I also signed up for your RSS feed. I will be back in a day or two. Thanks for a great web site.

  10. I consider something truly interesting about your weblog so I saved to favorites .

  11. I completely love your website, and I recommend to my friends Susan and Alen, they also like it.You can add more category , and we think you can write much more good articles.

  12. I completely love your website, and I recommend to my friends Susan and Alen, they also like it.You can add more category , and we think you can write much more good articles.

  13. brian atwood says:

    I completely love your website, and I recommend to my friends Susan and Alen, they also like it.You can add more category , and we think you can write much more good articles.

  14. web tasarım says:

    Hımm very nice topic oow sheits (=

  15. gay dating says:

    You can definitely see your enthusiasm in the work you write. The world hopes for more passionate writers like you who aren?¯t afraid to say how they believe. Always go after your heart.

  16. Great Read. Great post. Will be reading more your articles!

  17. basur says:

    Thank you for good post.

  18. maxy desoza says:

    I am love it this site, and I recommend to my friends Susan and Alen, i am sure we are like it for this .
    i want to give you one suggestion plz add more category’s .
    i hope are you see my suggestion..

  19. Paul thanks for the video about the new profiling features on Adobe Air

  20. Porno says:

    Thank You admin/21.01.2011 21:52:43

  21. Porno İzle says:

    Thank you for information^^253

  22. Thanks for posting, nice website, im watching this website.All need to watch this website..180

  23. I also really like the images you spent here. They match so well using what youre trying to declare. Im sure you will reach so many people using what youve got to declare.

  24. biyografiler says:

    thank you so much this post.

  25. Everyone needs affordable term life insurance. A level term life insurance policy that provides exactly what you need at an affordable rate is easier to find than you might think.

  26. Thank you for the note! The beta is available now

  27. GAY CHILD PORN says:

    Very nice article. I just stumbled upon your blog and wanted to say that I’ve truly enjoyed surfing around your blog articles. After all I’ll be subscribing to your feed and I hope you write again very soon! GAY CHILD PORN