使用Eclipse插件TPTP来分析Android应用程序而不是traceview [英] Profiling Android apps with Eclipse plugin TPTP instead of traceview

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

问题描述

在Eclipse中配置Android应用程序的标准方法是使用插件DDMS并创建一个包含所有信息的跟踪文件。如果要查看此信息,可以使用traceview。我不喜欢我第一次使用此应用程序的体验,因为您无法过滤结果。您有很多方法调用启动您的应用程序,您不能仅过滤您的代码。

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.

我一直在寻找一种替代方法。我发现本教程使用Eclipse * TPTP可视化Google * Android *剖析数据,说明如何使用Eclipse Test&性能工具平台(TPTP)分析工具可视化Android分析数据。感谢上一篇文章写入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或另一个更成熟的免费分析工具分析此跟踪文件的另一种方法?你知道另一种方式来配置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获取内存使用,您必须从DDMS预期中转储HPROF文件。在这样做之前,您必须在DDMS首选项面板中选择HPROF操作,保存到磁盘操作。所以从现在开始,当您转储HPROF文件时,系统会询问您要保存.hprof文件的位置。您必须使用Android工具hprof-conv转换此文件,您可以在Android SDK安装目录./tools下找到该文件。最后,您可以使用 Eclipse MAT 插件来查看内存使用情况统计信息。我希望它能帮助别人。如果有人知道关于分析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

推荐答案

DeveloperWorks


要阅读一个trcxml文件内容,你应该使用文件>导入...>
分析和记录>分析文件选项导入
资源并使用TPTP视图查看跟踪数据

To read a trcxml file content, you should use "File" > "Import..." > "Profiling and Logging" > "Profiling File" option to import the resource and view the trace data with TPTP views

更新:

你在寻找 hprof-conv ?应该在sdk / tools目录中

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

Update2:

对不起,我没有看到你的更新,转换工具可作为附件从 EclipseWorld 2005提供的源代码中获得。希望有帮助。

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.

这篇关于使用Eclipse插件TPTP来分析Android应用程序而不是traceview的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆