~/talk

Debugging without a Stacktrace: Using Android Studio’s Performance Monitors

Talkat droidcon NYC 2017 · 2017-09-25..09-26· [android, testing]
links:none on file
slides:none on file

A music player app becomes completely unresponsive for one specific song (Dumdum by Keys and Crates) while logcat only shows choreographer and ART pauses with no stacktrace. GPU, CPU and network monitors stay flat but the Android Studio performance monitors memory graph spikes; the allocation tracker attributes 43% of memory to a Picasso thread. The culprit is a 3600×5400 artwork (3600×5400 -> 78 MB) when the view needs ~150px square (150px -> 90 KB). Fix: request smaller images and use Picasso.resize, which stops the crash.

AI-written summary · about

  1. 0:00Introduction and setup
  2. 1:57Crash with no stack trace
  3. 4:49Performance monitors overview
  4. 7:41Memory monitor reveals spike
  5. 9:27Allocation tracker identifies culprit
  6. 11:54Image size analysis
  7. 12:59Solving the memory issue
  8. 13:42Key takeaways and advice
  9. 14:05Q&A session
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.