SlideShare a Scribd company logo
RESTRICTED MORPHO
MORPHO RESTRICTED
This document and the information therein are the property of Morpho, They must not be copied or communicated to a third party without the prior written authorization of Morpho.
Android Code Optimization
Techniques
(Session 3)
15/12/2014
RESTRICTED MORPHO
MORPHO RESTRICTED
1 /
This document and the information therein are the property of Morpho, They must not be copied or communicated to a third party without the prior written authorization of Morpho.
AGENDA
CONFIDENTIAL / February 2014 / CEE - CC India
 Basic knowledge of DDMS (Dalvik Debug Monitor Service)
 Practical with DDMS
RESTRICTED MORPHO
MORPHO RESTRICTED
This document and the information therein are the property of Morpho, They must not be copied or communicated to a third party without the prior written authorization of Morpho.
/01/
Basics of DDMS
RESTRICTED MORPHO
MORPHO RESTRICTED
3 /
This document and the information therein are the property of Morpho, They must not be copied or communicated to a third party without the prior written authorization of Morpho.
BASICS OF DDMS
CONFIDENTIAL / February 2014 / CEE - CC India
 This is very very useful to the app developers
 Its is a very powerful debugging tool environment and offers various unparalleled debugging features
 heap information
 logcat monitoring
 file manager
 Etc.
 It is available by default in ECLIPSE IDE environment or even in the ANDROID SDK
RESTRICTED MORPHO
MORPHO RESTRICTED
This document and the information therein are the property of Morpho, They must not be copied or communicated to a third party without the prior written authorization of Morpho.
/02/
HOW TO USE DDMS ??
RESTRICTED MORPHO
MORPHO RESTRICTED
5 /
This document and the information therein are the property of Morpho, They must not be copied or communicated to a third party without the prior written authorization of Morpho.
HOW TO USE DDMS ??
 As explained, install android sdk....After you have installed platform-tools & sdk tools.Now go to
android folder and open tools
CONFIDENTIAL / February 2014 / CEE - CC India
RESTRICTED MORPHO
MORPHO RESTRICTED
This document and the information therein are the property of Morpho, They must not be copied or communicated to a third party without the prior written authorization of Morpho.
/03/
Now let's learn about its
components and it's use's
RESTRICTED MORPHO
MORPHO RESTRICTED
7 /
This document and the information therein are the property of Morpho, They must not be copied or communicated to a third party without the prior written authorization of Morpho.
DDMS VIEW COMPONENT'S :-
 DEVICES :-
CONFIDENTIAL / February 2014 / CEE - CC India
The device panel shows the
details of each process that
are running in the connected
device.
There are various operations
that can be performed from
this panel.
RESTRICTED MORPHO
MORPHO RESTRICTED
8 /
This document and the information therein are the property of Morpho, They must not be copied or communicated to a third party without the prior written authorization of Morpho.
ICONS
 Each of the icons present in this panel performs the functions as follow's :
 Debug Process Icon :- It show's the state of connection of the debugger.
 Update Heap :-Clicking on this enables Heap information for the process so that we do not have to do
memory deallocation manually.
 Dump HPROF :- Generates a Heap Dump , useful for tracing memory leaks in your app.
 Cause GC :-Invokes the Garbage collector to collect heap data.
 Update thread :-Show's the information about the running thread in the thread tad for selected process
 Start Method Profiling :- Tracks the metric's related a method. It collects information like the amount of time
taken to execute a method, number of calls.
 Stop Process :-Stops the currently selected process.
 Screen Capture :- Takes a screenshot of whatever
 is displayed on the screen.
 Reset ADB :- As the name suggest, it resets ADB.
CONFIDENTIAL / February 2014 / CEE - CC India
RESTRICTED MORPHO
MORPHO RESTRICTED
9 /
This document and the information therein are the property of Morpho, They must not be copied or communicated to a third party without the prior written authorization of Morpho.
THREAD'S
 The thread tab on the right of devices view shows informatiom related to the
thread for each process selected in the devices view.The information shown can
described as follows.
 ID :- A unique ID assigned to each thread dby Dalvik V,, which are only odd
numbers that start from 3 .
 Tid :-The linux thread associated with each thread , ehich matches the process
ID for each main thread in a process.
 Status :- Status of the thread in VM , out of daemons are marked with an
asterix.other values can be among running?sleeping/init/starting.
CONFIDENTIAL / February 2014 / CEE - CC India
RESTRICTED MORPHO
MORPHO RESTRICTED
10 /
This document and the information therein are the property of Morpho, They must not be copied or communicated to a third party without the prior written authorization of Morpho.
HEAP
 the heap view show a information and statistics about memory heap .To view heap usage,follow
these below steps
1. From the devices view, select the process for heap usage which has to be examined.
2. click on update heap
3. From heap Tab , select Cause GC to enable collecting heap data
 Every time you need to update your heap statistics. This will show you the amount of memory
allocated to each
CONFIDENTIAL / February 2014 / CEE - CC India
RESTRICTED MORPHO
MORPHO RESTRICTED
11 /
This document and the information therein are the property of Morpho, They must not be copied or communicated to a third party without the prior written authorization of Morpho.
ALLOCATION TRACKER
 The allocation Tracker show a real time information about allocation happening in the application
over a certain period of time. To enable allocation Tracking.
1. select the process to be tracked from device panel
2. click on start tracking from allocation tracker tab.
3. perform any actions on the devices or emulator that you want to be tracked.
4. click on Get Allocations objects, since tracking was enabled .
CONFIDENTIAL / February 2014 / CEE - CC India
RESTRICTED MORPHO
MORPHO RESTRICTED
12 /
This document and the information therein are the property of Morpho, They must not be copied or communicated to a third party without the prior written authorization of Morpho.
NETWORK STATISTICS
 The network tab allows you to track and optimize the amount of network data
your app is using. It even allows you to tag network sockets so that you can
differentiate between types of data .It will indicate the speed and amount of data
received /transmitted.
CONFIDENTIAL / February 2014 / CEE - CC India
RESTRICTED MORPHO
MORPHO RESTRICTED
13 /
This document and the information therein are the property of Morpho, They must not be copied or communicated to a third party without the prior written authorization of Morpho.
EMULATOR CONTROL :-
 One problem with testing Android devices using an emulator or developer device
is the fact that it is unable to examine the performance of the app in the real
world conditions . like call or SMS is received/sent or when a particular location
is reached. To be specific the emulator Tab allows you to emulate the following
real world conditions :
Telephony Status :- the following options are available to set the status of phones network.
Voice :- unregistered,home,roaming,searching,denied.
Data :- unregistered,home,roaming,searching,denied.
Speed :- Full,GSM,HSCSD,GPRS,EDGE,UMTS,HSDPA.
Latency :- GPRS,UMTS
Telephony Actions :- Telephony actions allow you to spoof the network.
Location Settings ;- Emulator control allows you to sppof the location
CONFIDENTIAL / February 2014 / CEE - CC India
RESTRICTED MORPHO
MORPHO RESTRICTED
14 /
This document and the information therein are the property of Morpho, They must not be copied or communicated to a third party without the prior written authorization of Morpho.
FILE EXPLORER
 As the name says it lets you view the directory and file structure if the device and lso easily copy files
to and from the emulator so as to enable easy data transfer in a manner similiar to ADB or ADB pull
command.
CONFIDENTIAL / February 2014 / CEE - CC India
RESTRICTED MORPHO
MORPHO RESTRICTED
15 /
This document and the information therein are the property of Morpho, They must not be copied or communicated to a third party without the prior written authorization of Morpho.
SYSTEM INFORMATION
 As the name says , it give's us the particular information about the GPU load , CPU load....
CONFIDENTIAL / February 2014 / CEE - CC India
RESTRICTED MORPHO
MORPHO RESTRICTED
16 /
This document and the information therein are the property of Morpho, They must not be copied or communicated to a third party without the prior written authorization of Morpho.
DDMS HAS ALSO AN INBUILT LOGCAT VIEWER
CONFIDENTIAL / February 2014 / CEE - CC India
RESTRICTED MORPHO
MORPHO RESTRICTED
This document and the information therein are the property of Morpho, They must not be copied or communicated to a third party without the prior written authorization of Morpho.
• http://forum.xda-
developers.com/showthread.php?t=2303834
• http://www.edumobile.org/android/android-tutorial/what-is-
ddms-and-how-it-works/
References
RESTRICTED MORPHO
MORPHO RESTRICTED
This document and the information therein are the property of Morpho, They must not be copied or communicated to a third party without the prior written authorization of Morpho.
Next session
Android Studio - An official IDE for
Android By Google.
Thank you

More Related Content

Viewers also liked

BKK16-302: Android Optimizing Compiler: New Member Assimilation Guide
BKK16-302: Android Optimizing Compiler: New Member Assimilation GuideBKK16-302: Android Optimizing Compiler: New Member Assimilation Guide
BKK16-302: Android Optimizing Compiler: New Member Assimilation Guide
Linaro
 
Code Optimization
Code OptimizationCode Optimization
Code Optimization
ESUG
 
Gc in android
Gc in androidGc in android
Gc in android
Vikas Balikai
 
JVM JIT compilation overview by Vladimir Ivanov
JVM JIT compilation overview by Vladimir IvanovJVM JIT compilation overview by Vladimir Ivanov
JVM JIT compilation overview by Vladimir IvanovZeroTurnaround
 
Understanding the Dalvik bytecode with the Dedexer tool
Understanding the Dalvik bytecode with the Dedexer toolUnderstanding the Dalvik bytecode with the Dedexer tool
Understanding the Dalvik bytecode with the Dedexer tool
Gabor Paller
 
LAS16-201: ART JIT in Android N
LAS16-201: ART JIT in Android NLAS16-201: ART JIT in Android N
LAS16-201: ART JIT in Android N
Linaro
 
optimizing code in compilers using parallel genetic algorithm
optimizing code in compilers using parallel genetic algorithm optimizing code in compilers using parallel genetic algorithm
optimizing code in compilers using parallel genetic algorithm
Fatemeh Karimi
 
JEEConf 2016. Effectiveness and code optimization in Java applications
JEEConf 2016. Effectiveness and code optimization in  Java applicationsJEEConf 2016. Effectiveness and code optimization in  Java applications
JEEConf 2016. Effectiveness and code optimization in Java applications
Strannik_2013
 
Google ART (Android RunTime)
Google ART (Android RunTime)Google ART (Android RunTime)
Google ART (Android RunTime)
Niraj Solanke
 
IoT Smart Home & Connected Car Convergence Insights from Patents
IoT Smart Home & Connected Car Convergence Insights from PatentsIoT Smart Home & Connected Car Convergence Insights from Patents
IoT Smart Home & Connected Car Convergence Insights from Patents
Alex G. Lee, Ph.D. Esq. CLP
 

Viewers also liked (10)

BKK16-302: Android Optimizing Compiler: New Member Assimilation Guide
BKK16-302: Android Optimizing Compiler: New Member Assimilation GuideBKK16-302: Android Optimizing Compiler: New Member Assimilation Guide
BKK16-302: Android Optimizing Compiler: New Member Assimilation Guide
 
Code Optimization
Code OptimizationCode Optimization
Code Optimization
 
Gc in android
Gc in androidGc in android
Gc in android
 
JVM JIT compilation overview by Vladimir Ivanov
JVM JIT compilation overview by Vladimir IvanovJVM JIT compilation overview by Vladimir Ivanov
JVM JIT compilation overview by Vladimir Ivanov
 
Understanding the Dalvik bytecode with the Dedexer tool
Understanding the Dalvik bytecode with the Dedexer toolUnderstanding the Dalvik bytecode with the Dedexer tool
Understanding the Dalvik bytecode with the Dedexer tool
 
LAS16-201: ART JIT in Android N
LAS16-201: ART JIT in Android NLAS16-201: ART JIT in Android N
LAS16-201: ART JIT in Android N
 
optimizing code in compilers using parallel genetic algorithm
optimizing code in compilers using parallel genetic algorithm optimizing code in compilers using parallel genetic algorithm
optimizing code in compilers using parallel genetic algorithm
 
JEEConf 2016. Effectiveness and code optimization in Java applications
JEEConf 2016. Effectiveness and code optimization in  Java applicationsJEEConf 2016. Effectiveness and code optimization in  Java applications
JEEConf 2016. Effectiveness and code optimization in Java applications
 
Google ART (Android RunTime)
Google ART (Android RunTime)Google ART (Android RunTime)
Google ART (Android RunTime)
 
IoT Smart Home & Connected Car Convergence Insights from Patents
IoT Smart Home & Connected Car Convergence Insights from PatentsIoT Smart Home & Connected Car Convergence Insights from Patents
IoT Smart Home & Connected Car Convergence Insights from Patents
 

Similar to Android Code Optimization Techniques 3

OMG DDS Security Specification - 4th revised submission document
OMG DDS Security Specification - 4th revised submission documentOMG DDS Security Specification - 4th revised submission document
OMG DDS Security Specification - 4th revised submission document
Gerardo Pardo-Castellote
 
Rpc over-dds-rti-e prosima-twinoaks-submission-v5
Rpc over-dds-rti-e prosima-twinoaks-submission-v5Rpc over-dds-rti-e prosima-twinoaks-submission-v5
Rpc over-dds-rti-e prosima-twinoaks-submission-v5
Gerardo Pardo-Castellote
 
Remedy IT Initial Submission for the Unified Component Model (UCM) for Distri...
Remedy IT Initial Submission for the Unified Component Model (UCM) for Distri...Remedy IT Initial Submission for the Unified Component Model (UCM) for Distri...
Remedy IT Initial Submission for the Unified Component Model (UCM) for Distri...
Remedy IT
 
Rdl modbus protocol testing tool
Rdl modbus protocol testing toolRdl modbus protocol testing tool
Rdl modbus protocol testing tool
Research Design Lab
 
RPC over DDS Beta 1
RPC over DDS Beta 1RPC over DDS Beta 1
RPC over DDS Beta 1
Sumant Tambe
 
Spring one2gx 2014 erdemgunay
Spring one2gx 2014 erdemgunaySpring one2gx 2014 erdemgunay
Spring one2gx 2014 erdemgunay
Erdem Gunay
 
Interface Definition Language (IDL) version 4.2
Interface Definition Language (IDL) version 4.2 Interface Definition Language (IDL) version 4.2
Interface Definition Language (IDL) version 4.2
Gerardo Pardo-Castellote
 
SpringOne2GX 2014 Splunk Presentation
SpringOne2GX 2014 Splunk PresentationSpringOne2GX 2014 Splunk Presentation
SpringOne2GX 2014 Splunk Presentation
Damien Dallimore
 
Cable modem hacking how to(2)
Cable modem hacking how to(2)Cable modem hacking how to(2)
Cable modem hacking how to(2)
NaciConSol
 
What Happens When You Press that Button?
What Happens When You Press that Button?What Happens When You Press that Button?
What Happens When You Press that Button?
Cellebrite
 
Uml2 super.book.040324
 Uml2 super.book.040324 Uml2 super.book.040324
Uml2 super.book.040324
Sidi yazid
 
Webinar–Improving Fuzz Testing of Infotainment Systems and Telematics Units U...
Webinar–Improving Fuzz Testing of Infotainment Systems and Telematics Units U...Webinar–Improving Fuzz Testing of Infotainment Systems and Telematics Units U...
Webinar–Improving Fuzz Testing of Infotainment Systems and Telematics Units U...
Synopsys Software Integrity Group
 
Ltrt 30500 boot p technical note ver. 6.2
Ltrt 30500 boot p technical note ver. 6.2Ltrt 30500 boot p technical note ver. 6.2
Ltrt 30500 boot p technical note ver. 6.2
charlyalize
 
DDS Security Specification (Adopted Beta1 June 2014)
DDS Security Specification (Adopted Beta1 June 2014)DDS Security Specification (Adopted Beta1 June 2014)
DDS Security Specification (Adopted Beta1 June 2014)
Gerardo Pardo-Castellote
 
Extensible and Dynamic Topic Types for DDS, Beta 1
Extensible and Dynamic Topic Types for DDS, Beta 1Extensible and Dynamic Topic Types for DDS, Beta 1
Extensible and Dynamic Topic Types for DDS, Beta 1
Rick Warren
 
OPC UA/DDS Gateway version 1.0 Beta
OPC UA/DDS Gateway version 1.0 BetaOPC UA/DDS Gateway version 1.0 Beta
OPC UA/DDS Gateway version 1.0 Beta
Gerardo Pardo-Castellote
 
Thick Client Testing Advanced
Thick Client Testing AdvancedThick Client Testing Advanced
Thick Client Testing Advanced
NSConclave
 
Video calling and remote accessing
Video calling and remote accessingVideo calling and remote accessing
Video calling and remote accessing
syed Farhan Rizvi
 
JAKU Botnet Analysis
JAKU Botnet AnalysisJAKU Botnet Analysis
JAKU Botnet Analysis
Napier University
 
An 124 user_guide_for_ft_prog
An 124 user_guide_for_ft_progAn 124 user_guide_for_ft_prog
An 124 user_guide_for_ft_prog
Devanceiro
 

Similar to Android Code Optimization Techniques 3 (20)

OMG DDS Security Specification - 4th revised submission document
OMG DDS Security Specification - 4th revised submission documentOMG DDS Security Specification - 4th revised submission document
OMG DDS Security Specification - 4th revised submission document
 
Rpc over-dds-rti-e prosima-twinoaks-submission-v5
Rpc over-dds-rti-e prosima-twinoaks-submission-v5Rpc over-dds-rti-e prosima-twinoaks-submission-v5
Rpc over-dds-rti-e prosima-twinoaks-submission-v5
 
Remedy IT Initial Submission for the Unified Component Model (UCM) for Distri...
Remedy IT Initial Submission for the Unified Component Model (UCM) for Distri...Remedy IT Initial Submission for the Unified Component Model (UCM) for Distri...
Remedy IT Initial Submission for the Unified Component Model (UCM) for Distri...
 
Rdl modbus protocol testing tool
Rdl modbus protocol testing toolRdl modbus protocol testing tool
Rdl modbus protocol testing tool
 
RPC over DDS Beta 1
RPC over DDS Beta 1RPC over DDS Beta 1
RPC over DDS Beta 1
 
Spring one2gx 2014 erdemgunay
Spring one2gx 2014 erdemgunaySpring one2gx 2014 erdemgunay
Spring one2gx 2014 erdemgunay
 
Interface Definition Language (IDL) version 4.2
Interface Definition Language (IDL) version 4.2 Interface Definition Language (IDL) version 4.2
Interface Definition Language (IDL) version 4.2
 
SpringOne2GX 2014 Splunk Presentation
SpringOne2GX 2014 Splunk PresentationSpringOne2GX 2014 Splunk Presentation
SpringOne2GX 2014 Splunk Presentation
 
Cable modem hacking how to(2)
Cable modem hacking how to(2)Cable modem hacking how to(2)
Cable modem hacking how to(2)
 
What Happens When You Press that Button?
What Happens When You Press that Button?What Happens When You Press that Button?
What Happens When You Press that Button?
 
Uml2 super.book.040324
 Uml2 super.book.040324 Uml2 super.book.040324
Uml2 super.book.040324
 
Webinar–Improving Fuzz Testing of Infotainment Systems and Telematics Units U...
Webinar–Improving Fuzz Testing of Infotainment Systems and Telematics Units U...Webinar–Improving Fuzz Testing of Infotainment Systems and Telematics Units U...
Webinar–Improving Fuzz Testing of Infotainment Systems and Telematics Units U...
 
Ltrt 30500 boot p technical note ver. 6.2
Ltrt 30500 boot p technical note ver. 6.2Ltrt 30500 boot p technical note ver. 6.2
Ltrt 30500 boot p technical note ver. 6.2
 
DDS Security Specification (Adopted Beta1 June 2014)
DDS Security Specification (Adopted Beta1 June 2014)DDS Security Specification (Adopted Beta1 June 2014)
DDS Security Specification (Adopted Beta1 June 2014)
 
Extensible and Dynamic Topic Types for DDS, Beta 1
Extensible and Dynamic Topic Types for DDS, Beta 1Extensible and Dynamic Topic Types for DDS, Beta 1
Extensible and Dynamic Topic Types for DDS, Beta 1
 
OPC UA/DDS Gateway version 1.0 Beta
OPC UA/DDS Gateway version 1.0 BetaOPC UA/DDS Gateway version 1.0 Beta
OPC UA/DDS Gateway version 1.0 Beta
 
Thick Client Testing Advanced
Thick Client Testing AdvancedThick Client Testing Advanced
Thick Client Testing Advanced
 
Video calling and remote accessing
Video calling and remote accessingVideo calling and remote accessing
Video calling and remote accessing
 
JAKU Botnet Analysis
JAKU Botnet AnalysisJAKU Botnet Analysis
JAKU Botnet Analysis
 
An 124 user_guide_for_ft_prog
An 124 user_guide_for_ft_progAn 124 user_guide_for_ft_prog
An 124 user_guide_for_ft_prog
 

Recently uploaded

How Recreation Management Software Can Streamline Your Operations.pptx
How Recreation Management Software Can Streamline Your Operations.pptxHow Recreation Management Software Can Streamline Your Operations.pptx
How Recreation Management Software Can Streamline Your Operations.pptx
wottaspaceseo
 
GlobusWorld 2024 Opening Keynote session
GlobusWorld 2024 Opening Keynote sessionGlobusWorld 2024 Opening Keynote session
GlobusWorld 2024 Opening Keynote session
Globus
 
Enhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdfEnhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdf
Globus
 
Explore Modern SharePoint Templates for 2024
Explore Modern SharePoint Templates for 2024Explore Modern SharePoint Templates for 2024
Explore Modern SharePoint Templates for 2024
Sharepoint Designs
 
Visitor Management System in India- Vizman.app
Visitor Management System in India- Vizman.appVisitor Management System in India- Vizman.app
Visitor Management System in India- Vizman.app
NaapbooksPrivateLimi
 
Designing for Privacy in Amazon Web Services
Designing for Privacy in Amazon Web ServicesDesigning for Privacy in Amazon Web Services
Designing for Privacy in Amazon Web Services
KrzysztofKkol1
 
Accelerate Enterprise Software Engineering with Platformless
Accelerate Enterprise Software Engineering with PlatformlessAccelerate Enterprise Software Engineering with Platformless
Accelerate Enterprise Software Engineering with Platformless
WSO2
 
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, BetterWebinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
XfilesPro
 
Large Language Models and the End of Programming
Large Language Models and the End of ProgrammingLarge Language Models and the End of Programming
Large Language Models and the End of Programming
Matt Welsh
 
Understanding Globus Data Transfers with NetSage
Understanding Globus Data Transfers with NetSageUnderstanding Globus Data Transfers with NetSage
Understanding Globus Data Transfers with NetSage
Globus
 
Globus Compute wth IRI Workflows - GlobusWorld 2024
Globus Compute wth IRI Workflows - GlobusWorld 2024Globus Compute wth IRI Workflows - GlobusWorld 2024
Globus Compute wth IRI Workflows - GlobusWorld 2024
Globus
 
Providing Globus Services to Users of JASMIN for Environmental Data Analysis
Providing Globus Services to Users of JASMIN for Environmental Data AnalysisProviding Globus Services to Users of JASMIN for Environmental Data Analysis
Providing Globus Services to Users of JASMIN for Environmental Data Analysis
Globus
 
Vitthal Shirke Microservices Resume Montevideo
Vitthal Shirke Microservices Resume MontevideoVitthal Shirke Microservices Resume Montevideo
Vitthal Shirke Microservices Resume Montevideo
Vitthal Shirke
 
Multiple Your Crypto Portfolio with the Innovative Features of Advanced Crypt...
Multiple Your Crypto Portfolio with the Innovative Features of Advanced Crypt...Multiple Your Crypto Portfolio with the Innovative Features of Advanced Crypt...
Multiple Your Crypto Portfolio with the Innovative Features of Advanced Crypt...
Hivelance Technology
 
Software Testing Exam imp Ques Notes.pdf
Software Testing Exam imp Ques Notes.pdfSoftware Testing Exam imp Ques Notes.pdf
Software Testing Exam imp Ques Notes.pdf
MayankTawar1
 
A Comprehensive Look at Generative AI in Retail App Testing.pdf
A Comprehensive Look at Generative AI in Retail App Testing.pdfA Comprehensive Look at Generative AI in Retail App Testing.pdf
A Comprehensive Look at Generative AI in Retail App Testing.pdf
kalichargn70th171
 
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.ILBeyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
Natan Silnitsky
 
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
informapgpstrackings
 
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoamOpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
takuyayamamoto1800
 
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdfDominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
AMB-Review
 

Recently uploaded (20)

How Recreation Management Software Can Streamline Your Operations.pptx
How Recreation Management Software Can Streamline Your Operations.pptxHow Recreation Management Software Can Streamline Your Operations.pptx
How Recreation Management Software Can Streamline Your Operations.pptx
 
GlobusWorld 2024 Opening Keynote session
GlobusWorld 2024 Opening Keynote sessionGlobusWorld 2024 Opening Keynote session
GlobusWorld 2024 Opening Keynote session
 
Enhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdfEnhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdf
 
Explore Modern SharePoint Templates for 2024
Explore Modern SharePoint Templates for 2024Explore Modern SharePoint Templates for 2024
Explore Modern SharePoint Templates for 2024
 
Visitor Management System in India- Vizman.app
Visitor Management System in India- Vizman.appVisitor Management System in India- Vizman.app
Visitor Management System in India- Vizman.app
 
Designing for Privacy in Amazon Web Services
Designing for Privacy in Amazon Web ServicesDesigning for Privacy in Amazon Web Services
Designing for Privacy in Amazon Web Services
 
Accelerate Enterprise Software Engineering with Platformless
Accelerate Enterprise Software Engineering with PlatformlessAccelerate Enterprise Software Engineering with Platformless
Accelerate Enterprise Software Engineering with Platformless
 
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, BetterWebinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
 
Large Language Models and the End of Programming
Large Language Models and the End of ProgrammingLarge Language Models and the End of Programming
Large Language Models and the End of Programming
 
Understanding Globus Data Transfers with NetSage
Understanding Globus Data Transfers with NetSageUnderstanding Globus Data Transfers with NetSage
Understanding Globus Data Transfers with NetSage
 
Globus Compute wth IRI Workflows - GlobusWorld 2024
Globus Compute wth IRI Workflows - GlobusWorld 2024Globus Compute wth IRI Workflows - GlobusWorld 2024
Globus Compute wth IRI Workflows - GlobusWorld 2024
 
Providing Globus Services to Users of JASMIN for Environmental Data Analysis
Providing Globus Services to Users of JASMIN for Environmental Data AnalysisProviding Globus Services to Users of JASMIN for Environmental Data Analysis
Providing Globus Services to Users of JASMIN for Environmental Data Analysis
 
Vitthal Shirke Microservices Resume Montevideo
Vitthal Shirke Microservices Resume MontevideoVitthal Shirke Microservices Resume Montevideo
Vitthal Shirke Microservices Resume Montevideo
 
Multiple Your Crypto Portfolio with the Innovative Features of Advanced Crypt...
Multiple Your Crypto Portfolio with the Innovative Features of Advanced Crypt...Multiple Your Crypto Portfolio with the Innovative Features of Advanced Crypt...
Multiple Your Crypto Portfolio with the Innovative Features of Advanced Crypt...
 
Software Testing Exam imp Ques Notes.pdf
Software Testing Exam imp Ques Notes.pdfSoftware Testing Exam imp Ques Notes.pdf
Software Testing Exam imp Ques Notes.pdf
 
A Comprehensive Look at Generative AI in Retail App Testing.pdf
A Comprehensive Look at Generative AI in Retail App Testing.pdfA Comprehensive Look at Generative AI in Retail App Testing.pdf
A Comprehensive Look at Generative AI in Retail App Testing.pdf
 
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.ILBeyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
 
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
 
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoamOpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
 
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdfDominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
 

Android Code Optimization Techniques 3

  • 1. RESTRICTED MORPHO MORPHO RESTRICTED This document and the information therein are the property of Morpho, They must not be copied or communicated to a third party without the prior written authorization of Morpho. Android Code Optimization Techniques (Session 3) 15/12/2014
  • 2. RESTRICTED MORPHO MORPHO RESTRICTED 1 / This document and the information therein are the property of Morpho, They must not be copied or communicated to a third party without the prior written authorization of Morpho. AGENDA CONFIDENTIAL / February 2014 / CEE - CC India  Basic knowledge of DDMS (Dalvik Debug Monitor Service)  Practical with DDMS
  • 3. RESTRICTED MORPHO MORPHO RESTRICTED This document and the information therein are the property of Morpho, They must not be copied or communicated to a third party without the prior written authorization of Morpho. /01/ Basics of DDMS
  • 4. RESTRICTED MORPHO MORPHO RESTRICTED 3 / This document and the information therein are the property of Morpho, They must not be copied or communicated to a third party without the prior written authorization of Morpho. BASICS OF DDMS CONFIDENTIAL / February 2014 / CEE - CC India  This is very very useful to the app developers  Its is a very powerful debugging tool environment and offers various unparalleled debugging features  heap information  logcat monitoring  file manager  Etc.  It is available by default in ECLIPSE IDE environment or even in the ANDROID SDK
  • 5. RESTRICTED MORPHO MORPHO RESTRICTED This document and the information therein are the property of Morpho, They must not be copied or communicated to a third party without the prior written authorization of Morpho. /02/ HOW TO USE DDMS ??
  • 6. RESTRICTED MORPHO MORPHO RESTRICTED 5 / This document and the information therein are the property of Morpho, They must not be copied or communicated to a third party without the prior written authorization of Morpho. HOW TO USE DDMS ??  As explained, install android sdk....After you have installed platform-tools & sdk tools.Now go to android folder and open tools CONFIDENTIAL / February 2014 / CEE - CC India
  • 7. RESTRICTED MORPHO MORPHO RESTRICTED This document and the information therein are the property of Morpho, They must not be copied or communicated to a third party without the prior written authorization of Morpho. /03/ Now let's learn about its components and it's use's
  • 8. RESTRICTED MORPHO MORPHO RESTRICTED 7 / This document and the information therein are the property of Morpho, They must not be copied or communicated to a third party without the prior written authorization of Morpho. DDMS VIEW COMPONENT'S :-  DEVICES :- CONFIDENTIAL / February 2014 / CEE - CC India The device panel shows the details of each process that are running in the connected device. There are various operations that can be performed from this panel.
  • 9. RESTRICTED MORPHO MORPHO RESTRICTED 8 / This document and the information therein are the property of Morpho, They must not be copied or communicated to a third party without the prior written authorization of Morpho. ICONS  Each of the icons present in this panel performs the functions as follow's :  Debug Process Icon :- It show's the state of connection of the debugger.  Update Heap :-Clicking on this enables Heap information for the process so that we do not have to do memory deallocation manually.  Dump HPROF :- Generates a Heap Dump , useful for tracing memory leaks in your app.  Cause GC :-Invokes the Garbage collector to collect heap data.  Update thread :-Show's the information about the running thread in the thread tad for selected process  Start Method Profiling :- Tracks the metric's related a method. It collects information like the amount of time taken to execute a method, number of calls.  Stop Process :-Stops the currently selected process.  Screen Capture :- Takes a screenshot of whatever  is displayed on the screen.  Reset ADB :- As the name suggest, it resets ADB. CONFIDENTIAL / February 2014 / CEE - CC India
  • 10. RESTRICTED MORPHO MORPHO RESTRICTED 9 / This document and the information therein are the property of Morpho, They must not be copied or communicated to a third party without the prior written authorization of Morpho. THREAD'S  The thread tab on the right of devices view shows informatiom related to the thread for each process selected in the devices view.The information shown can described as follows.  ID :- A unique ID assigned to each thread dby Dalvik V,, which are only odd numbers that start from 3 .  Tid :-The linux thread associated with each thread , ehich matches the process ID for each main thread in a process.  Status :- Status of the thread in VM , out of daemons are marked with an asterix.other values can be among running?sleeping/init/starting. CONFIDENTIAL / February 2014 / CEE - CC India
  • 11. RESTRICTED MORPHO MORPHO RESTRICTED 10 / This document and the information therein are the property of Morpho, They must not be copied or communicated to a third party without the prior written authorization of Morpho. HEAP  the heap view show a information and statistics about memory heap .To view heap usage,follow these below steps 1. From the devices view, select the process for heap usage which has to be examined. 2. click on update heap 3. From heap Tab , select Cause GC to enable collecting heap data  Every time you need to update your heap statistics. This will show you the amount of memory allocated to each CONFIDENTIAL / February 2014 / CEE - CC India
  • 12. RESTRICTED MORPHO MORPHO RESTRICTED 11 / This document and the information therein are the property of Morpho, They must not be copied or communicated to a third party without the prior written authorization of Morpho. ALLOCATION TRACKER  The allocation Tracker show a real time information about allocation happening in the application over a certain period of time. To enable allocation Tracking. 1. select the process to be tracked from device panel 2. click on start tracking from allocation tracker tab. 3. perform any actions on the devices or emulator that you want to be tracked. 4. click on Get Allocations objects, since tracking was enabled . CONFIDENTIAL / February 2014 / CEE - CC India
  • 13. RESTRICTED MORPHO MORPHO RESTRICTED 12 / This document and the information therein are the property of Morpho, They must not be copied or communicated to a third party without the prior written authorization of Morpho. NETWORK STATISTICS  The network tab allows you to track and optimize the amount of network data your app is using. It even allows you to tag network sockets so that you can differentiate between types of data .It will indicate the speed and amount of data received /transmitted. CONFIDENTIAL / February 2014 / CEE - CC India
  • 14. RESTRICTED MORPHO MORPHO RESTRICTED 13 / This document and the information therein are the property of Morpho, They must not be copied or communicated to a third party without the prior written authorization of Morpho. EMULATOR CONTROL :-  One problem with testing Android devices using an emulator or developer device is the fact that it is unable to examine the performance of the app in the real world conditions . like call or SMS is received/sent or when a particular location is reached. To be specific the emulator Tab allows you to emulate the following real world conditions : Telephony Status :- the following options are available to set the status of phones network. Voice :- unregistered,home,roaming,searching,denied. Data :- unregistered,home,roaming,searching,denied. Speed :- Full,GSM,HSCSD,GPRS,EDGE,UMTS,HSDPA. Latency :- GPRS,UMTS Telephony Actions :- Telephony actions allow you to spoof the network. Location Settings ;- Emulator control allows you to sppof the location CONFIDENTIAL / February 2014 / CEE - CC India
  • 15. RESTRICTED MORPHO MORPHO RESTRICTED 14 / This document and the information therein are the property of Morpho, They must not be copied or communicated to a third party without the prior written authorization of Morpho. FILE EXPLORER  As the name says it lets you view the directory and file structure if the device and lso easily copy files to and from the emulator so as to enable easy data transfer in a manner similiar to ADB or ADB pull command. CONFIDENTIAL / February 2014 / CEE - CC India
  • 16. RESTRICTED MORPHO MORPHO RESTRICTED 15 / This document and the information therein are the property of Morpho, They must not be copied or communicated to a third party without the prior written authorization of Morpho. SYSTEM INFORMATION  As the name says , it give's us the particular information about the GPU load , CPU load.... CONFIDENTIAL / February 2014 / CEE - CC India
  • 17. RESTRICTED MORPHO MORPHO RESTRICTED 16 / This document and the information therein are the property of Morpho, They must not be copied or communicated to a third party without the prior written authorization of Morpho. DDMS HAS ALSO AN INBUILT LOGCAT VIEWER CONFIDENTIAL / February 2014 / CEE - CC India
  • 18. RESTRICTED MORPHO MORPHO RESTRICTED This document and the information therein are the property of Morpho, They must not be copied or communicated to a third party without the prior written authorization of Morpho. • http://forum.xda- developers.com/showthread.php?t=2303834 • http://www.edumobile.org/android/android-tutorial/what-is- ddms-and-how-it-works/ References
  • 19. RESTRICTED MORPHO MORPHO RESTRICTED This document and the information therein are the property of Morpho, They must not be copied or communicated to a third party without the prior written authorization of Morpho. Next session Android Studio - An official IDE for Android By Google. Thank you