Top Banner

of 17

Device Side Performance Optimization of Mobile Apps_July11

Apr 07, 2018

Download

Documents

Impetus
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
  • 8/6/2019 Device Side Performance Optimization of Mobile Apps_July11

    1/17

    Device Side Performance

    Optimization of Mobile Apps

    July 8, 2011

    Recorded version available at

    http://www.impetus.com/webinar_registration?event=archived&eid=44

  • 8/6/2019 Device Side Performance Optimization of Mobile Apps_July11

    2/17

    Agenda

    Device sideperformancechallenges formobile

    applications

    Why performanceanalysis?

    Performanceanalysis approach

    Planningperformanceanalysis ofmobileapps

    Optimizationtechniques forbetterperformance

    Real-worldexamples

    Recorded version available at

    http://www.impetus.com/webinar_registration?event=archived&eid=44

  • 8/6/2019 Device Side Performance Optimization of Mobile Apps_July11

    3/17

    Device-side Performance Challenges forMobile Applications

    Diversity inhandsets

    Differenceinthe screen size

    Variations inbattery lifeandmemory

    3G Option/ Wi-Fi Capabilities

    Touch, Multi-touch

    Differenttypes ofprocessors andhardware

    Devicefeatures, suchas GPS, Camera, etc.

    Applicationdevelopmentmethodology

    Recorded version available at

    http://www.impetus.com/webinar_registration?event=archived&eid=44

  • 8/6/2019 Device Side Performance Optimization of Mobile Apps_July11

    4/17

    Importance of Performance Analysis

    Saves Battery Life Faster Time to Market

    Application Stability Limited Code Change

    Recorded version available at

    http://www.impetus.com/webinar_registration?event=archived&eid=44

  • 8/6/2019 Device Side Performance Optimization of Mobile Apps_July11

    5/17

    Performance Factors

    PerformanceAnalysis

    Processinfo

    Deviceinfo

    Taskinfo

    PUinfo

    Debuginfo

    Service

    info

    Batteryinfo

    Memoryinfo

    Recorded version available at

    http://www.impetus.com/webinar_registration?event=archived&eid=44

  • 8/6/2019 Device Side Performance Optimization of Mobile Apps_July11

    6/17

    Options for Performance Analysis

    Usingextensivedebuggingtools

    Traceview& Eclipsememory analyzer&DDMSforAndroid

    J2ME profilerforJavaphones

    JDE memory analyzerforBlackBerry

    Instruments foriPhone

    Usageofsmall stubs

    Automated scripts

    Recorded version available at

    http://www.impetus.com/webinar_registration?event=archived&eid=44

  • 8/6/2019 Device Side Performance Optimization of Mobile Apps_July11

    7/17

    Performance Analysis Approach

    Instrument the device

    Capturing performanceparameters on device

    Extracting, collating &analyzing

    Reporting performancebottlenecks

    Recorded version available at

    http://www.impetus.com/webinar_registration?event=archived&eid=44

  • 8/6/2019 Device Side Performance Optimization of Mobile Apps_July11

    8/17

    Optimization Techniques

    UI independent layouts anddesign

    Addresses challenges createdby diversity inhandsets, differencein

    device screen sizes & Touch/Multi-touchfeature

    Developingno-porting/less-portingbuildtoreducebinary size

    ProperusageofMVC framework

    Address ApplicationDevelopment Methodology issues

    Endorses platformindependentdesignforapplications

    Recorded version available at

    http://www.impetus.com/webinar_registration?event=archived&eid=44

  • 8/6/2019 Device Side Performance Optimization of Mobile Apps_July11

    9/17

    Optimization Techniques

    Optimizedcommunication

    Resolves issues causedby 3G andDevice Wi-Ficapabilities

    Connectto serverusingpush-basednotifications

    Implementingobjects anddatacachingmechanisms

    Using scaled-downprotocols andminimumfunctionalities

    Auto selectionofmostpreferredmode

    Designconsiderations ofavailablenetworkoptions

    Recorded version available at

    http://www.impetus.com/webinar_registration?event=archived&eid=44

  • 8/6/2019 Device Side Performance Optimization of Mobile Apps_July11

    10/17

    Optimization Techniques

    Memorymanagementwiththehelpofweakreferences

    Helps applicationdevelopmentmethodology

    Usingweakreferencetomanagedevicememory

    Lazy loadingofresources Addresses problemcreatedby diverseprocessors andhardware

    Enhancedturnaroundtime

    Workerthreadimplementation

    Business Logicoperations canbeimplementedonworkerthread

    Recorded version available at

    http://www.impetus.com/webinar_registration?event=archived&eid=44

  • 8/6/2019 Device Side Performance Optimization of Mobile Apps_July11

    11/17

    Real-world Experience

    The Client

    A leadingfinancial services provider

    Key Challenges

    Applicationnot usableaftersometime

    Application screens aretakingtimeto load

    Extra usageofmemory incertainevents

    Impetus Solution

    Wrote small stubs intheapplicationtoidentify performancebottlenecks

    Reinventtheimageprocessingalgorithmtoreduce CPUcycles

    Usageofmultithreadedapproach

    Analyzememory usageandresolvememory leaks fromthe system

    Benefits Realised

    Tremendous increase in applications performance and life

    Enhanced application consumes lesser memory vis- a-vis prev version

  • 8/6/2019 Device Side Performance Optimization of Mobile Apps_July11

    12/17

    Real-world Experience

    The Client

    A leading Mediabroadcast serviceprovidercompany

    Key Challenges

    Playing smoothaudio-videotogetherwithoutinterruption

    Various networkprotocol usage

    Enhancebattery life soas toplay videofor3-4

    Impetus Solution

    Customizeddata sourceimplementation

    ImplementedRTSP, RTP, RTCPprotocols withdevicethreading support

    Eventqueuetoprocess media streams

    Benefits Realised

    Enhanced battery life

    Audio/Video synchronization maintained and better quality delivered

  • 8/6/2019 Device Side Performance Optimization of Mobile Apps_July11

    13/17

    Driven by..

    Impetus Mobile Maturity Model

    Recorded version available at

    http://www.impetus.com/webinar_registration?event=archived&eid=44

  • 8/6/2019 Device Side Performance Optimization of Mobile Apps_July11

    14/17

    To Summarize..

    Application shouldnotadversely affectdevice CPUandmemory

    Performanceanalysis tobebasedon CPU, memory, service,

    debugandprocess infoparameters

    Small stubs canbe usedtoidentify problemareaofyourapp

    Optimizationtechniques canbeincorporatedwhererequired

    Rightdesignedapplicationwill always getdesiredperformance

    Recorded version available at

    http://www.impetus.com/webinar_registration?event=archived&eid=44

  • 8/6/2019 Device Side Performance Optimization of Mobile Apps_July11

    15/17

    Impetus Technologies

    We offer innovative product engineering

    and technology R&D services

    Recorded version available at

    http://www.impetus.com/webinar_registration?event=archived&eid=44

  • 8/6/2019 Device Side Performance Optimization of Mobile Apps_July11

    16/17

    Questions

    Please send in your questions

    using the chat panel

    Recorded version available at

    http://www.impetus.com/webinar_registration?event=archived&eid=44

  • 8/6/2019 Device Side Performance Optimization of Mobile Apps_July11

    17/17

    Thank you

    Mail us [email protected]

    orvisitwww.impetus.com

    Recorded version available at

    http://www.impetus.com/webinar_registration?event=archived&eid=44