开发者

Android traceview alternative

开发者 https://www.devze.com 2023-02-17 18:11 出处:网络
Are there some alternative tracing tools which works on android? If there aren\'t, are there s开发者_运维知识库ome good alternatives for measuring bottlenecks? (I ask because i have many problems with

Are there some alternative tracing tools which works on android? If there aren't, are there s开发者_运维知识库ome good alternatives for measuring bottlenecks? (I ask because i have many problems with traceview)


I posted yesterday a similar question Profiling Android apps with Eclipse plugin TPTP instead of traceview. I found someone who was able to view Android trace file with the Eclipse Test and Performance Tools Platform (TPTP), the standard tool for profiling an application in Eclipse. Unfortunately I didn't manage to convert .trace file into .trcxml file (that is the format used by TPTP). I'll let you know if I discover something usefull.


Edit 1

I found some interesting tool you can use to analyze Android apps memory usage. In order to get memory usage from Eclipse you have to "Dump HPROF file" from the DDMS prospective. Before doing that you have to choose in the DDMS preference panel, when it says "HPROF Action", the "Save to disk" action. So from now on when you dump HPROF file you'll be asked where you want to save your .hprof file. You have to convert this file with the Android tool "hprof-conv" you can find in your Android SDK installation under the directory "./tools". Finally now you can use the Eclipse MAT plugin to view the memory usage stats. I hope it will help someone else. If anyone knows something else about profiling Android apps it will appreciated. Thanks

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号