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

Mais conteúdo relacionado

Destaque (8)

Build a Flash Game in Under 3KB
Build a Flash Game in Under 3KBBuild a Flash Game in Under 3KB
Build a Flash Game in Under 3KB
 
2
22
2
 
Unleashing creativity through Arduino
Unleashing creativity through ArduinoUnleashing creativity through Arduino
Unleashing creativity through Arduino
 
My Business ( V Mobile Technology )
My Business ( V Mobile Technology )My Business ( V Mobile Technology )
My Business ( V Mobile Technology )
 
RMsis : Baseline
RMsis :  BaselineRMsis :  Baseline
RMsis : Baseline
 
Monetizing Mobile Apps
Monetizing Mobile AppsMonetizing Mobile Apps
Monetizing Mobile Apps
 
Intelli J IDEA
Intelli J IDEAIntelli J IDEA
Intelli J IDEA
 
Notas clase
Notas claseNotas clase
Notas clase
 

Semelhante a Improve Application Performance Using the Profiler

mobile commerce tutorial 5.docx
mobile commerce tutorial 5.docxmobile commerce tutorial 5.docx
mobile commerce tutorial 5.docx
SmritiThapa11
 
Responsive web design & mobile web development - a technical and business app...
Responsive web design & mobile web development - a technical and business app...Responsive web design & mobile web development - a technical and business app...
Responsive web design & mobile web development - a technical and business app...
Atos_Worldline
 
Smarr Oscon 2007
Smarr Oscon 2007Smarr Oscon 2007
Smarr Oscon 2007
briandemant
 

Semelhante a Improve Application Performance Using the Profiler (20)

Mobile App Performance Optimization to Improve User Experience - by Supercharge
Mobile App Performance Optimization to Improve User Experience - by SuperchargeMobile App Performance Optimization to Improve User Experience - by Supercharge
Mobile App Performance Optimization to Improve User Experience - by Supercharge
 
mobile commerce tutorial 5.docx
mobile commerce tutorial 5.docxmobile commerce tutorial 5.docx
mobile commerce tutorial 5.docx
 
Lesson learned from 3 years with hybrid apps
Lesson learned from 3 years with hybrid appsLesson learned from 3 years with hybrid apps
Lesson learned from 3 years with hybrid apps
 
HTML5 Can't Do That
HTML5 Can't Do ThatHTML5 Can't Do That
HTML5 Can't Do That
 
Responsive web design & mobile web development - a technical and business app...
Responsive web design & mobile web development - a technical and business app...Responsive web design & mobile web development - a technical and business app...
Responsive web design & mobile web development - a technical and business app...
 
Skill Session - Web Multi Device
Skill Session - Web Multi DeviceSkill Session - Web Multi Device
Skill Session - Web Multi Device
 
Practical Design and Development with Flash on Mobile and Devices
Practical Design and Development with Flash on Mobile and DevicesPractical Design and Development with Flash on Mobile and Devices
Practical Design and Development with Flash on Mobile and Devices
 
Best Practices in Mobile Development: Building Your First jQuery Mobile App
Best Practices in Mobile Development: Building Your First jQuery Mobile AppBest Practices in Mobile Development: Building Your First jQuery Mobile App
Best Practices in Mobile Development: Building Your First jQuery Mobile App
 
Smarr Oscon 2007
Smarr Oscon 2007Smarr Oscon 2007
Smarr Oscon 2007
 
Os Smarr
Os SmarrOs Smarr
Os Smarr
 
APPLICATIONS AND DEVICES-DRIVERS REVIEW NOTES.pdf
APPLICATIONS AND DEVICES-DRIVERS REVIEW NOTES.pdfAPPLICATIONS AND DEVICES-DRIVERS REVIEW NOTES.pdf
APPLICATIONS AND DEVICES-DRIVERS REVIEW NOTES.pdf
 
BigDesign 2014 - What's Before Mobile First?
BigDesign 2014 - What's Before Mobile First?BigDesign 2014 - What's Before Mobile First?
BigDesign 2014 - What's Before Mobile First?
 
Mobile html5 today
Mobile html5 todayMobile html5 today
Mobile html5 today
 
Front End Development | Introduction
Front End Development | IntroductionFront End Development | Introduction
Front End Development | Introduction
 
phonegap with angular js for freshers
phonegap with angular js for freshers    phonegap with angular js for freshers
phonegap with angular js for freshers
 
web development ppt by prakash bedage
web development ppt by prakash bedageweb development ppt by prakash bedage
web development ppt by prakash bedage
 
web development project prakash.pptx
web development project prakash.pptxweb development project prakash.pptx
web development project prakash.pptx
 
Apache Flex and the imperfect Web
Apache Flex and the imperfect WebApache Flex and the imperfect Web
Apache Flex and the imperfect Web
 
Roadmap to Become Experts.pptx
Roadmap to Become Experts.pptxRoadmap to Become Experts.pptx
Roadmap to Become Experts.pptx
 
Mastering Mobile Web with 8 Key Rules
Mastering Mobile Web with 8 Key RulesMastering Mobile Web with 8 Key Rules
Mastering Mobile Web with 8 Key Rules
 

Último

Último (20)

Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 

Improve Application Performance Using the Profiler

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