如何设置 Eclipse TPTP
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/186615/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to set up Eclipse TPTP
提问by Rolf
I need to profile a java application for a customer. It's an eclipse/maven project, so I decided on using eclipse TPTP ( http://www.eclipse.org/tptp).
我需要为客户分析 Java 应用程序。这是一个 eclipse/maven 项目,所以我决定使用 eclipse TPTP ( http://www.eclipse.org/tptp)。
I tried to install eclipse TPTP through the update manager from a standard eclipse installation, but I gave up because of the unbelievable complex setup and downloading of dependencies with very cryptic names.
我试图通过标准 eclipse 安装中的更新管理器安装 eclipse TPTP,但由于难以置信的复杂设置和下载具有非常神秘名称的依赖项,我放弃了。
Then I downloaded the "all in one TPTP 4.5.1" package from http://www.eclipse.org/tptp/home/downloads/?ver=4.5.1but when I start it up, it pops up an error saying "The eclipse executable launcher was unable to locate it's companion shared library".
然后我从http://www.eclipse.org/tptp/home/downloads/?ver=4.5.1下载了“all in one TPTP 4.5.1”包,但是当我启动它时,它弹出一个错误说“eclipse 可执行启动器无法找到它的配套共享库”。
I'm running Windows XP, Sun Java 1.5, and clicked on "eclipse.exe" in the unpacked eclipse TPTP installation.
我正在运行 Windows XP、Sun Java 1.5,并在解压的 eclipse TPTP 安装中单击“eclipse.exe”。
What do I need to do to get eclipse TPTP running?
我需要做什么才能运行 Eclipse TPTP?
采纳答案by Mario Ortegón
An alternative is to use Netbeans to profile an Eclipse Application.
另一种方法是使用 Netbeans 来分析 Eclipse 应用程序。
I have a blog post on the link below that explains how to configure both applications:
我在下面的链接上有一篇博客文章,解释了如何配置这两个应用程序:
http://www.jroller.com/ortegon/entry/on_profiling_eclipse_rcp_applications
http://www.jroller.com/ortegon/entry/on_profiling_eclipse_rcp_applications
It works very well. I've been profiling this way from over a year. Easy to use, easy to setup and nice graphics also.
它运作良好。一年多以来,我一直以这种方式进行分析。易于使用,易于设置和漂亮的图形也。
I found installing TPTP a pain, at least the version I used is not very well integrated with Eclipse. It took me a very long time to get it to work correctly. Netbeans was way quicker to learn and to get up to speed. In the newer versions, it is also possible to import the source code of the Eclipse Projects using a special netbeans plugin (albeit it needs to be downloaded separately).
我发现安装 TPTP 很痛苦,至少我使用的版本与 Eclipse 集成得不是很好。我花了很长时间才让它正常工作。Netbeans 的学习和跟上速度更快。在较新的版本中,还可以使用特殊的 netbeans 插件导入 Eclipse 项目的源代码(尽管需要单独下载)。
回答by Matthew McCullough
VisualVM 1.1.1is a nice alternative to using NetBeans, being a standalone app, so you don't have to bring a Maven/Ant/Eclipse project into it's project format. It can see any local Java process upon opening, so just double click your app in the list of Java processes and off you go. You can:
VisualVM 1.1.1是使用 NetBeans 的一个不错的替代方案,它是一个独立的应用程序,因此您不必将 Maven/Ant/Eclipse 项目带入它的项目格式。它可以在打开时看到任何本地 Java 进程,因此只需在 Java 进程列表中双击您的应用程序即可。你可以:
- Take Heap Dumps
- Compare Memory Snapshots
- View garbage collection with the VisualGC plugin
- Run BTrace scriptsto add run-time profiling & debugging advice to your code.
- 进行堆转储
- 比较内存快照
- 使用 VisualGC 插件查看垃圾收集
- 运行 BTrace 脚本以向您的代码添加运行时分析和调试建议。
回答by Jay R.
If you update to Java 1.6u7 or better, you'll get access to the VisualVM tool that is essentially the same as the Netbeans Profiler.
如果您更新到 Java 1.6u7 或更高版本,您将可以访问与 Netbeans Profiler 基本相同的 VisualVM 工具。
I tried to use the Eclipse Test and Performance Tools package, but it just didn't work as well as the Netbeans profiler.
我尝试使用 Eclipse 测试和性能工具包,但它的效果不如 Netbeans 分析器。
回答by laszlot
It's strange. I've tried the all in one package and it works without a problem on Windows XP with Java 1.5 Is it not possible that you use 64 bit version of Windows? Maybe that could be the cause of the problem.
真奇怪。我已经尝试了多合一软件包,它在带有 Java 1.5 的 Windows XP 上运行没有问题 难道您不能使用 64 位版本的 Windows?也许这可能是问题的原因。
I personaly don't use TPTP very much. I think NetBeans profiler gives more - at least more understandable - information.
我个人不怎么使用TPTP。我认为 NetBeans 分析器提供了更多——至少更易于理解——的信息。
回答by G B
Maybe try downloading the "Java 1.5+ (JVMTI) Profiler SDK" (runtime) from http://www.eclipse.org/tptp/home/downloads/?ver=4.5.1
也许尝试从http://www.eclipse.org/tptp/home/downloads/?ver=4.5.1下载“Java 1.5+ (JVMTI) Profiler SDK”(运行时)
I also think IBM's latest Rational Developer integrates this technology (there is 60 days trial). You can see how they configure it there.
我也认为 IBM 最新的 Rational Developer 集成了这项技术(有 60 天的试用期)。您可以在那里看到他们如何配置它。