My question is there is a way to debug a specific line of code to check how much memory it takes or a technique of figuring out how much it uses?.
Note* I am using eclipse.
请参阅
http://www.droidnova.com/debugging-in-android-using-eclipse,541.html
和
http://macgyverdev.blogspot.de/2011/07/profiling-android-application-tutorial.html
这就是你需要知道的一切;)
Debugging 和 Profiling 是关键字。