OSX 上的 Eclipse TPTP 或其他 java 分析解决方案。 欢迎提出建议
我正在尝试使用 TPTP 在 OSX 上的 eclipse 中分析 junit 测试。 我从 eclipse 安装了 TPTP 包,没有任何问题,我去分析一些代码,它告诉我:
代理控制器在端口 10002 下不可用。
确保服务已启动且端口号正确 在首选项下。
我在互联网上搜索并发现了许多关于 代理控制器不适用于 os X。我认识的几乎所有 java 开发人员都在 os x 下运行 eclipse。 为什么eclipse不支持os x? 如果 os x 无法运行代理控制器,为什么还要为 os x 提供 TPTP 包? 纯粹为了远程调试目的?
- Os X 基于 BSD 构建,Linux 有代理控制器端口。 这已经移植到 os x 了吗?
- 任何让 TPTP 在 os x 上工作的想法或成功故事(在 Linux 上进行远程调试、代理控制器替换) )?
- 还有哪些其他选项(Netbeans、VisualVM、JProfiler)以及它们有多好?
- stackoverflow 建议我做什么?
注意:我对类和方法的分析、每个方法被调用的次数以及程序在每个方法中花费的时间感兴趣。 由于代码的复杂性,使用 System.nanotime() 语句不是一种选择。
根据 Eclipse TPTP 常见问题解答< /强>
TPTP 支持哪些平台和环境?
用户界面组件 TPTP基础设施可以运行在任何 Eclipse 支持的平台。 这 各种测试执行、监控和 跟踪组件通常运行在 广泛的基础设施和 与广泛的接口 系统。 一个显着的缺陷是 存在的就是各种痕迹 目前设施 Java 特定的,虽然该项目 有一个目标是延长额外的 适时提供语言支持。 为了 其他代理还有合理的 已实施或计划实施的覆盖范围 流行的操作系统、应用程序 服务器、网络服务器等,带有 特别注重提供支持 对于其他开源产品。
相关问题:
如果您有一个 java 应用程序在不执行任何操作时消耗 cpu
相关链接:
I'm attempting to profile junit tests in eclipse on OSX using TPTP. I installed the TPTP package from eclipse with no problem, I went to profile some code and it tells me:
Agent Controller is unavailable under port 10002.
Make sure that the service is started and the port number is correct
under preferences.
I searched around on the internets and discovered many complains about Agent Controller not being available for os X. Almost all of the java developers I know run eclipse under os x. Why would eclipse not support os x? Why even make the TPTP packages available for os x if os x can't run agent controller? Purely for remote debugging purposes?
- Os X is built on BSD, Linux has an Agent Controller port. Has this been ported to os x?
- Any ideas or success stories getting TPTP to work on os x (remote debugging on linux, agent controller replacements)?
- What other options are there (Netbeans, VisualVM, JProfiler) and how good are they?
- What does stackoverflow suggest I do?
Note: I am interested in profiling on class and method, of the number of times each method is called, and the amount of time the program spends in each method. Due to the complexity of the code using System.nanotime() statements are not an option.
According to the Eclipse TPTP FAQ
What platforms and environments does TPTP support?
The user interface components of the
TPTP Infrastructure can run on any
Eclipse-supported platform. The
various test execution, monitoring and
tracing components typically run on a
broad range of infrastructure and
interface with a broad range of
systems. One notable deficiency at
present is that the various trace
facilities are currently
Java-specific, although the project
has a goal to extend additional
language support in due course. For
the other agents there is a reasonable
coverage implemented or planned for
popular operating systems, application
servers, web servers etc, with a
particular focus on providing support
for other open source products.
Related Questions:
How can I see what parts of my code are running the most
Using java to get os level system information
if you have a java application that is consuming cpu when it isnt doing anything
Related Links:
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
就其他 Java 分析器而言,我认为这是最好的 Stack Overflow 问题:
请推荐一个 Java Profiler
我个人会推荐YourKit Java Profiler,我已经找到了比 TPTP 对用户友好得多,并且(虽然我还没有测试过)它应该可以在 OS X 上运行。
As far as other Java profilers go, I think this is the best Stack Overflow question:
Please Recommend a Java Profiler
I personally would recommend YourKit Java Profiler, I've found it much more user-friendly than TPTP, and (while I haven't tested it) it should work on OS X.
您是否见过 Netbeans 分析器在 OS X 下是否工作? 它是原始版本,jvisualvm 是其子集。 它可能只是工作...
Have you seen if the Netbeans profiler works under OS X? It is the original of which jvisualvm is a subset. It might just work...