The standard way to profile an Android application in Eclipse is to use the DDMS plugin and create a trace file with all the information inside. If you want to view this information, you can use "traceview". I did not like my first experience with this application because you cannot filter the results. You have many method calls to run your application, and you cannot filter only your code.
I was looking for an alternative method. I found this tutorial Using Eclipse * TPTP to Visualize Google * Android * Profiling Data Data , which explains how you can use the Eclipse Test and Performance Tools (TPTP) platform profiling tool to visualize Android profiling data. Thanks to the previous post, Permission to write to the SD card I was able to transfer the trace file from the Android emulator to my file systems. The next step is to convert this .trace file to a TPTP.trcxml file. I did not find this converter they are talking about.
Does anyone know where I can find this converter? Do you know another way to parse this trace file with TPTP or with another more mature free profiling tool? Do you know another way to profile an Android app? thanks in advance
Change 1 :
I found an interesting tool that you can use to analyze the memory usage of Android applications. To get memory usage from Eclipse, you have to "Dump HPROF file" from the DDMS perspective. Before doing this, you need to select in the DDMS preference panel, when it says "HPROF action", the action "Save to disk." So, now when you upload the HPROF file, you will be asked where you want to save the .hprof file. You must convert this file using the Android hprof-conv tool, which you can find in your Android SDK installation in the "./tools" directory. Finally, you can use the Eclipse MAT plugin to view memory usage statistics. Hope this helps someone else. If someone knows something else about profiling Android apps, he will be appreciated. Thanks
android eclipse profiling eclipse-tptp
PinoSan Mar 31 '11 at 23:59 2011-03-31 23:59
source share