Improve Application Performance Using the Profiler<br />By Chris Black<br />@chrisjblack<br />
Aw, Snap!<br />
What Causes a Browser to Crash?<br />Poor code written in ANY programming language<br />All browsers in the previous slide...
Background<br />I am a self employed…<br />ActionScript developer<br />Mobile applications developer<br />Google AdWords c...
Why is Memory mgmt important?<br />
Mobile Development<br />When building applications for mobile it is even more important to consider memory management<br /...
Reputation of Scripting Languages<br />Flash doesn’t crash browsers, poor development crashes browsers in all languages<br...
How to crash the Browser<br />
Infinite Loops<br />while(1){<br />	n += “You shouldn’t have done that”;<br />} // this JS will crash IE, Firefox and Safa...
Memory Leaks<br />addNextItem(data){<br />var item = new Item(data);<br />}<br />This is where the memory profiler comes i...
Managing Memory<br />
Garbage Collection<br />Runtime removes unused items<br />Garbage collection is expensive and CPU intensive<br />Re-use di...
Store Data to the Hard Drive<br />Saves loading time and allows for re-use of components<br />Requires additional manageme...
Memory Profiler<br />FREE memory profiler with Flash Develop<br />Also comes with Flash Builder Pro and FDT<br />
Live Demo<br />Use the profiler in Flash Develop to manage memory within your application<br />
Questions?<br />
Upcoming SlideShare
Loading in …5
×

Improve Application Performance Using the Profiler

1,203 views
1,122 views

Published on

Both Flash Builder Pro and the free alternative, Flash Develop, include an invaluable tool called the memory profiler. Take full advantage of this tool to increase the performance of your apps and prevent browser crashes. We'll also cover some common mistakes when building interactive web applications. This presentation is for anyone who is unfamiliar with the profiler or hasn't used it before.

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
1,203
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
7
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Improve Application Performance Using the Profiler

  1. 1. Improve Application Performance Using the Profiler<br />By Chris Black<br />@chrisjblack<br />
  2. 2. Aw, Snap!<br />
  3. 3. What Causes a Browser to Crash?<br />Poor code written in ANY programming language<br />All browsers in the previous slides crashed using JavaScript<br />Both JavaScript and ActionScript can perform poorly and crash the browser when written incorrectly<br />
  4. 4. Background<br />I am a self employed…<br />ActionScript developer<br />Mobile applications developer<br />Google AdWords consultant<br />My devices…<br />BlackBerry<br />Android<br />iPod Touch<br />
  5. 5. Why is Memory mgmt important?<br />
  6. 6. Mobile Development<br />When building applications for mobile it is even more important to consider memory management<br />Devices are running on a fraction of the CPU and memory of desktop computers<br />
  7. 7. Reputation of Scripting Languages<br />Flash doesn’t crash browsers, poor development crashes browsers in all languages<br />People see the result, not the cause<br />
  8. 8. How to crash the Browser<br />
  9. 9. Infinite Loops<br />while(1){<br /> n += “You shouldn’t have done that”;<br />} // this JS will crash IE, Firefox and Safari<br />var data = new Array(“1”);<br />for(var n; n < data.length; n++){<br />data.push(“1”);<br />}<br />
  10. 10. Memory Leaks<br />addNextItem(data){<br />var item = new Item(data);<br />}<br />This is where the memory profiler comes in handy!<br />
  11. 11. Managing Memory<br />
  12. 12. Garbage Collection<br />Runtime removes unused items<br />Garbage collection is expensive and CPU intensive<br />Re-use display objects as much as possible<br />
  13. 13. Store Data to the Hard Drive<br />Saves loading time and allows for re-use of components<br />Requires additional management<br />
  14. 14. Memory Profiler<br />FREE memory profiler with Flash Develop<br />Also comes with Flash Builder Pro and FDT<br />
  15. 15. Live Demo<br />Use the profiler in Flash Develop to manage memory within your application<br />
  16. 16. Questions?<br />

×