SlideShare uma empresa Scribd logo
1 de 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.
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

Mais conteúdo relacionado

Destaque

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 GuideLinaro
 
Code Optimization
Code OptimizationCode Optimization
Code OptimizationESUG
 
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 toolGabor 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 NLinaro
 
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 applicationsStrannik_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 PatentsAlex G. Lee, Ph.D. Esq. CLP
 

Destaque (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
 

Semelhante a 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 documentGerardo 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-v5Gerardo 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 toolResearch Design Lab
 
RPC over DDS Beta 1
RPC over DDS Beta 1RPC over DDS Beta 1
RPC over DDS Beta 1Sumant Tambe
 
Spring one2gx 2014 erdemgunay
Spring one2gx 2014 erdemgunaySpring one2gx 2014 erdemgunay
Spring one2gx 2014 erdemgunayErdem 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 PresentationDamien 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.040324Sidi 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.2charlyalize
 
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 1Rick Warren
 
Thick Client Testing Advanced
Thick Client Testing AdvancedThick Client Testing Advanced
Thick Client Testing AdvancedNSConclave
 
Video calling and remote accessing
Video calling and remote accessingVideo calling and remote accessing
Video calling and remote accessingsyed Farhan Rizvi
 
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_progDevanceiro
 

Semelhante a 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
 

Último

DNT_Corporate presentation know about us
DNT_Corporate presentation know about usDNT_Corporate presentation know about us
DNT_Corporate presentation know about usDynamic Netsoft
 
Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)OPEN KNOWLEDGE GmbH
 
chapter--4-software-project-planning.ppt
chapter--4-software-project-planning.pptchapter--4-software-project-planning.ppt
chapter--4-software-project-planning.pptkotipi9215
 
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdfThe Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdfkalichargn70th171
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...ICS
 
Salesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantSalesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantAxelRicardoTrocheRiq
 
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...stazi3110
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVshikhaohhpro
 
Unit 1.1 Excite Part 1, class 9, cbse...
Unit 1.1 Excite Part 1, class 9, cbse...Unit 1.1 Excite Part 1, class 9, cbse...
Unit 1.1 Excite Part 1, class 9, cbse...aditisharan08
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comFatema Valibhai
 
Introduction to Decentralized Applications (dApps)
Introduction to Decentralized Applications (dApps)Introduction to Decentralized Applications (dApps)
Introduction to Decentralized Applications (dApps)Intelisync
 
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed DataAlluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed DataAlluxio, Inc.
 
Cloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackCloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackVICTOR MAESTRE RAMIREZ
 
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...soniya singh
 
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...Christina Lin
 
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop SlideBuilding Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop SlideChristina Lin
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsAlberto González Trastoy
 
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...gurkirankumar98700
 
Asset Management Software - Infographic
Asset Management Software - InfographicAsset Management Software - Infographic
Asset Management Software - InfographicHr365.us smith
 

Último (20)

DNT_Corporate presentation know about us
DNT_Corporate presentation know about usDNT_Corporate presentation know about us
DNT_Corporate presentation know about us
 
Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)
 
chapter--4-software-project-planning.ppt
chapter--4-software-project-planning.pptchapter--4-software-project-planning.ppt
chapter--4-software-project-planning.ppt
 
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdfThe Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
 
Salesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantSalesforce Certified Field Service Consultant
Salesforce Certified Field Service Consultant
 
Exploring iOS App Development: Simplifying the Process
Exploring iOS App Development: Simplifying the ProcessExploring iOS App Development: Simplifying the Process
Exploring iOS App Development: Simplifying the Process
 
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTV
 
Unit 1.1 Excite Part 1, class 9, cbse...
Unit 1.1 Excite Part 1, class 9, cbse...Unit 1.1 Excite Part 1, class 9, cbse...
Unit 1.1 Excite Part 1, class 9, cbse...
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.com
 
Introduction to Decentralized Applications (dApps)
Introduction to Decentralized Applications (dApps)Introduction to Decentralized Applications (dApps)
Introduction to Decentralized Applications (dApps)
 
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed DataAlluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
 
Cloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackCloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStack
 
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
 
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
 
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop SlideBuilding Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
 
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
 
Asset Management Software - Infographic
Asset Management Software - InfographicAsset Management Software - Infographic
Asset Management Software - Infographic
 

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