Download - Android preformance

Transcript
  • 1. Android Speed up your app

2. We'll talk about..

  • Profiling with Traceview

3. Helping the GC with HPROF 4. Optimizing layouts with HierarchyViewer 5. Playing tough with StrictMode 6. whoami 7. Traceview Profiling

  • Performance of each method

8. Graphical interface 9. Run from DDMS or code 10. Traceview Profiling 11. Traceview Profiling Inclusive: Includes child functions Exclusive: This function only 12. Traceview Profiling 13. Traceview Profiling

  • So...what's the problem here?

14. Helping out the GC

  • Allocation Tracker (DDMS)

15. Helping out the GC

  • Memory profiling -> Dalvik HPROF file

16. Use code or DDMS 17. Use hprof-conv to convert to standard 18. Use any Java HPROF analyzer 19. Helping out the GC

  • Eclipse MAT (Memory Analyzer Tool)

20. Helping out the GC

  • Histogram & Dominator tree

21.

  • GUI Optimization
  • layoutopt
  • Comes with the SDK

22. Scan the layout XML for optimizations 23. Not very helpful Hierarchy Viewer

  • Tree view of the layout

24. Loading times for all the components 25. Components' properties 26. Hierarchy Viewer 27. StrictMode

  • Problems Detector

28. Single thread or the entire machine 29. Show dialog, write to Log and more.. 30. Usually used to detect slow operations on UI thread 31. Came with Gingerbread (2.3) 32. Thank you @udinic http://www.udinic.com [email_address]


Top Related