Upload
infinum
View
114
Download
1
Embed Size (px)
Citation preview
Jernej Virag / PSPDFKit
I/Choreographer(1378): Skipped 55 frames! The application may be doing too much work on its main thread.
The Stutter:
Jernej Virag / PSPDFKit
MEASURE!CPU Profiling: • Android Studio Profiler • TraceView • SysTrace
GPU Profiling: • Android Studio Profiler • OpenGL Profiler
Memory Profiling: • Android Studio Profiler • Eclipse MAT
Jernej Virag / PSPDFKit
TraceView
Start CPU profile
Can also start use Debug.startMethodTracing(“filename”);
Debug.stopMethodTracing();
Jernej Virag / PSPDFKit
TraceView
✓
✘
Screen redraws with main thread idle between them
Screen redraws delayed due to other code on main thread
Jernej Virag / PSPDFKit
Systrace
Slow layout and ImageView loading image.
Custom blocks can be added with: Trace.beginSection(“name”);
Trace.endSection();
Jernej Virag / PSPDFKit
Memory leak hunting All objects in memory by class
Instances of selected class
Reference tree to GC root for selected object
Jernej Virag / PSPDFKit
Memory leak hunting Eclipse MAT
https://eclipse.org/mat/
Jernej Virag / PSPDFKit
#PERFMATTERShttp://blog.udinic.com/2015/09/15/speed-up-your-app
https://plus.google.com/communities/116342551728637785407
Jernej Virag / PSPDFKit
?Jernej Virag / [email protected] / @jernejv