本文介绍了剖析Android应用程序与Eclipse插件,TPTP代替traceview的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

的标准方法来分析在Eclipse的Andr​​oid应用程序正在使用的插件DDMS和创造与里面的所有信息的跟踪文件。如果要查看此信息,您可以使用traceview。我不喜欢我的这个应用程序第一次经历,因为你无法筛选结果。你有很多方法调用启动您的应用程序,你不能只过滤你的code。

The standard way to profile an Android application in Eclipse is using the plugin DDMS and creating a trace file with all the information inside. If you want to view this information you can use "traceview". I didn't like my first experience with this application because you can't filter the results. You have a lot of method calls for starting your application and you cannot filter only your code.

我一直在寻找一种替代方法。我发现这个教程Using基于Eclipse * TPTP形象化谷歌的Andr​​oid * *分析数据,解释了如何使用Eclipse测试与放大器;性能工具平台(TPTP)分析工具,以可视化的Andr​​oid分析数据。由于这个previous后权限写入SD卡我设法采取从Android模拟器我的跟踪文件到我的文件系统。下一步骤是将本.trace文件到TPTP .trcxml文件。我没有找到此转换器,他们谈论的话题。

I have been looking for an alternative method. I found this tutorial Using Eclipse* TPTP to Visualize Google* Android* Profiling Data that explains how you can use the Eclipse Test & Performance Tools Platform (TPTP) Profiling tool to visualize Android profiling data. Thanks to this previous post Permission to write to the SD card I managed to take my trace file from the Android Emulator into my file systems. The next step is converting this .trace file into a TPTP .trcxml file. I didn't find this converter they talk about.

任何人都知道在哪里可以找到这种转换器?你知道另一种方式来分析与TPTP或与其他更成熟的免费Profiler工具这个跟踪文件?你知道另一种方式来分析Android应用程序?在此先感谢

Anyone knows where I can find this converter? Do you know another way to analyze this trace file with TPTP or with another more mature FREE profiler tool? Do you know another way to profile Android application? Thanks in advance

修改1

我发现了一些有趣的工具,你可以用它来分析Android应用程序的内存使用情况。为了从Eclipse中获取内存使用情况,你必须HPROF转储文件从DDMS预期。在此之前,你必须在DDMS preference面板可供选择,当它说HPROF行动,保存到磁盘行动。所以,从现在开始,当你倾倒HPROF上的文件系统将要求您要保存.hprof文件。你要这个文件转换的Andr​​oid工具HPROF-CONV,你可以在目录下的./tool​​s你的Andr​​oid SDK安装找到。最后,现在你可以使用 Eclipse的MAT 插件来查看内存使用状态。我希望这将帮助别人。如果有人知道别的有关分析将AP preciated Android应用程序。谢谢

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

推荐答案

从的

要读取一个trcxml文件的内容,你应该使用文件>导入>  分析和日志记录>剖析文件选项导入  资源和查看跟踪数据与TPTP意见

更新:

您是否在寻找 HPROF-CONV ?应该是在SDK / tools目录

Are you looking for hprof-conv? Should be in the sdk/tools directory

UPDATE2:

对不起,我没看到您的更新,该转换工具可作为附件从的提供的源。希望有所帮助。

Sorry, I didn't see your update, the conversion tool is available as an attachment from the source provided at EclipseWorld 2005. Hope that helps.

这篇关于剖析Android应用程序与Eclipse插件,TPTP代替traceview的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-02 11:46