My Octopress Blog

A blogging framework for hackers.

Android Preformace 2: Detect Memory Leak

the common way to detect memory leak

  • use Heap tool and Allocation tracing
  • start a empty activity
  • jump to the activity in question
  • trigger gc
  • watch the heap