SlideShare a Scribd company logo
1 of 41
Download to read offline
@littleeyelabs
mobile app insights like never before
Understanding the why and what of
Android app performance
@littleeyelabs
if customers uninstall, they are lost forever!
customers hate apps that drain
power, crash or perform badly
“44% of users uninstall apps that
perform badly”
“96% of users will give such apps a bad
rating”
Source: http://apigee.com/about/pressrelease/apigee-survey-users-reveal-top-frustrations-lead-bad-mobile-app-reviews
@littleeyelabs
happens to the best of apps!
@littleeyelabs
phenomenon is not limited to
consumer apps!
“if I had a penny for everytime
someone complained about my app
draining battery, I would be a
millionaire”
- Slightly exaggerated quote of a frustrated
QA manager in a large MDM company
Source: http://apigee.com/about/pressrelease/apigee-survey-users-reveal-top-frustrations-lead-bad-mobile-app-reviews
@littleeyelabs
top performance
parameters
battery drain
network consumption
crashes
responsiveness
@littleeyelabs
understanding battery consumption!
@littleeyelabs
what consumes
power
@littleeyelabs
network
cpu
display
gps
gpu
optimization
opportunities
@littleeyelabs
EDGE slow, less power per byte
of data transfer
Wifi more power, but faster
3G more power than Wifi, typically
slower than Wifi.
4G more power than 3G, potentially
faster than Wifi
4G > 3G > Wifi > 2G
network
basics
@littleeyelabs
what causes
power
consumption?
four primary states -
establish
maintain (idle)
transmit (two or more sub
states)
tail state (pseudo state)
what causes
power
consumption?
@littleeyelabs
Establish Maintain Transmit Tail
Wifi High Low Low Low
2G Low Low Low Low
3G Low Low High High
what causes
power
consumption?
@littleeyelabs
understanding state transitions
@littleeyelabs
prefetch data
batch data
detect network state
avoid polling
use inexact timers
use caching
tips to optimize
network power
@littleeyelabs
prefetch data
batch data
detect network state
avoid polling
use inexact timers
use caching
tips to optimize
network power
@littleeyelabs
prefetch data
batch data
detect network state
avoid polling
use inexact timers
use caching
tips to optimize
network power
@littleeyelabs
prefetch data
batch data
detect network state
avoid polling
use inexact timers
use caching
tips to optimize
network power
@littleeyelabs
prefetch data
batch data
detect network state
avoid polling
use inexact timers
use caching
tips to optimize
network power
@littleeyelabs
prefetch data
batch data
detect network state
avoid polling
use inexact timers
use caching
tips to optimize
network power
@littleeyelabs
varying download pattern
monitor charge level and state
monitor and determine
docking state
monitor connectivity state
programmatic control over
receivers
tips to optimize
network power
@littleeyelabs
varying download pattern
monitor charge level and state
monitor and determine
docking state
monitor connectivity state
programmatic control over
receivers
tips to optimize
network power
@littleeyelabs
varying download pattern
monitor charge level and state
monitor and determine
docking state
monitor connectivity state
programmatic control over
receivers
tips to optimize
network power
@littleeyelabs
varying download pattern
monitor charge level and state
monitor and determine
docking state
monitor connectivity state
programmatic control over
receivers
tips to optimize
network power
@littleeyelabs
varying download pattern
monitor charge level and state
monitor and determine
docking state
monitor connectivity state
programmatic control over
receivers
tips to optimize
network power
@littleeyelabs
CPU
basics
runs on various frequencies
frequency controlled by governor
policy
transitions controlled at linux layer
drops down to ‘deep sleep’ as
much as it can
frequencies are scaled based of
usage
@littleeyelabs
CPU
spy
@littleeyelabs
monitor CPU usage
@littleeyelabs
tips to optimize
cpu usage
wakelocks
great power comes with great responsibility
be conscious about how often/long they are
used
use ‘android:keepScreenOn’
spread out your computationally
intensive job
@littleeyelabs
tips to optimize
cpu usage
wakelocks
great power comes with great responsibility
be conscious about how often/long they are
used
use ‘android:keepScreenOn’
spread out your computationally
intensive job
@littleeyelabs
tips to optimize
cpu usage
gpu consumes more power than
cpu
avoid floating point math where possible
use gpu for data-parallel tasks like
video/image processing
use algorithms that consume less
CPU cycle
O(n log n) vs O(n 2) algorithms
goal - keep the freq to the lowest
level and/or reduce the number of
cycles
@littleeyelabs
tips to optimize
cpu usage
gpu consumes more power than
cpu
avoid floating point math where possible
use gpu for data-parallel tasks like
video/image processing
use algorithms that consume less
CPU cycle
O(n log n) vs O(n 2) algorithms
goal - keep the freq to the lowest
level and/or reduce the number of
cycles
@littleeyelabs
tips to optimize
cpu usage
gpu consumes more power than
cpu
avoid floating point math where possible
use gpu for data-parallel tasks like
video/image processing
use algorithms that consume less
CPU cycle
O(n log n) vs O(n 2) algorithms
goal - keep the freq to the lowest
level and/or reduce the number of
cycles
@littleeyelabs
tips to optimize
cpu usage
gpu consumes more power than
cpu
avoid floating point math where possible
use gpu for data-parallel tasks like
video/image processing
use algorithms that consume less
CPU cycle
O(n log n) vs O(n 2) algorithms
goal - keep the freq to the lowest
level and/or reduce the number of
cycles
@littleeyelabs
screen tips color matters!
esp on OLED screens
darker the color, lesser the consumption
brightness levels have more impact
programmatically reduce brightness
if its suits your app/activity
@littleeyelabs
impact of display
@littleeyelabs
crashes!
@littleeyelabs
top reasons
running out of memory
hitting unexpected conditions in
the app
network changes
demand exceeding expectation
responsiveness
@littleeyelabs
running out of
memory
leaks
references continue to exist
GC cannot collect objects, even when
not used
quickly identify which use case
does not reduce memory
consumption
use heap dumps to drill down to
actual object
continuous heap dumps and diff
@littleeyelabs
analyzing memory consumption trends
@littleeyelabs
pre & post-production
analysis and monitoring
detecting performance impacts
before and after release is vital
post-production tracks issues as it
happens with customers
crashlytics
crittercism
pre-production analysis helps
prevent issues before customers
face it
Little Eye
DDMS
@littleeyelabs
demo of little eye
@littleeyelabs
“Things well done and with a care,
exempt themselves from fear”
William Shakespeare
@littleeyelabs
https://angel.co/little-eye-labs
also on

More Related Content

Recently uploaded

EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
Earley Information Science
 

Recently uploaded (20)

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
 
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?
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
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
 
Evaluating the top large language models.pdf
Evaluating the top large language models.pdfEvaluating the top large language models.pdf
Evaluating the top large language models.pdf
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
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
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
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
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 

Featured

Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 

Featured (20)

Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
 

App performance littleeyelabs