22

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

any help will be appreciative.

sajjoo
  • 6,476
  • 20
  • 62
  • 85

4 Answers4

19

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,226
  • 11
  • 43
  • 73
Naved
  • 5,633
  • 4
  • 28
  • 46
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,442
  • 6
  • 39
  • 50
2

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,252
  • 8
  • 16
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
  • 52,770
  • 23
  • 148
  • 184
Maciej Pigulski
  • 1,554
  • 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