如何以编程方式使用 Netbeans Profiler?

发布于 2024-07-20 08:06:49 字数 154 浏览 6 评论 0原文

我希望能够使用 Netbeans Profiler API 对某些应用程序进行一些分析。 我对使用 Visual VM 不感兴趣,而是以编程方式从应用程序收集数据[比如说 CPU 使用情况和方法执行时间]。 例如,使用 CPU 使用率和热方法。 例如,如何获取该数据并将其打印在控制台上?

I want to be able to do some profiling to some app using the Netbeans Profiler API. I'm not interested in using Visual VM , but rather in programmatically collecting data from the application[let's say CPU usage, and method execution times]. For instance, using CPU usage and hot methods. How to get that data and print it on console for instance?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

绝不放开 2024-07-27 08:06:49

这是来自 Jiri Sedlacek——VisualVM 开发者之一:

没有什么比“Netbeans”更好的了
Profiler API',探查器没有
有任何供公众使用的 API。 两者都不
VisualVM 和 NetBeans Profiler
会帮助你解决这个问题

就是这样,伙计们!

This was from Jiri Sedlacek - one of the VisualVM develpers:

There's nothing like 'Netbeans
Profiler API', the profiler doesn't
have any API for public usage. Neither
VisualVM nor the NetBeans Profiler
will help you with this

So that's it folks!

许一世地老天荒 2024-07-27 08:06:49

JRockit Mission Control have according to new and noteworthy for the 3.1 release a public API that be used to subscribe to JMX-data and to establish connections to local/remote servers. See at the bottom of the page.

金兰素衣 2024-07-27 08:06:49

为了提供更新的信息:Netbeans 的代码在 https://github.com/apache 下公开/incubator-netbeans

在模块分析器下,代码可用于以编程方式获取所需信息。

For the sake of providing the updated information: Netbeans is code is public under https://github.com/apache/incubator-netbeans

Under the module profiler, the code can be used for getting required information programmatically.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文