22

Is there any nice tool to check memory leaks in android?

any help will be appreciative.

sajjoo
  • 6,576
  • 20
  • 65
  • 86

4 Answers4

14

Tool "Traceview" will also be helpful to you. This comes with the android sdk.
Refer to the following link for more detail.

http://developer.android.com/guide/developing/tools/traceview.html

https://developer.android.com/studio/profile/traceview.html

Dayan
  • 7,634
  • 11
  • 49
  • 76
Naved
  • 4,020
  • 4
  • 31
  • 45
5

You can try using Memory Analyzer to check Memory leaks in Android

http://kohlerm.blogspot.com/2009/04/analyzing-memory-usage-off-your-android.html

DeRagan
  • 22,827
  • 6
  • 41
  • 50
1

A different and more detailed version of this question is discussed in that address imho What Android tools and methods work best to find memory/resource leaks?

Community
  • 1
  • 1
Serdar Dalgic
  • 1,322
  • 8
  • 17
0

http://source.android.com/source/download.html mentions about tool called Valgrind:

You might also want Valgrind, a tool that will help you find memory leaks, stack corruption, array bounds overflows, etc.

 $ sudo apt-get install valgrind 
Jared Burrows
  • 54,294
  • 25
  • 151
  • 185
Maciej Pigulski
  • 1,562
  • 12
  • 26
  • 2
    I think this answer is outdated. Besides that, I think it only applies to the NDK, not pure Java/Dalvik VM memory "leaks". – andr Jan 25 '13 at 00:28