将 NetBeans 分析器与 Guice 类结合使用

发布于 2024-09-11 23:33:17 字数 241 浏览 3 评论 0原文

如何将 NetBeans 6.8 或 6.9 中的探查器(选择“整个应用程序”)与 guice 增强类一起使用?

我正在使用 google guice 2.0(带有 warp persist 2.0-20090214)来处理某些类,并希望分析这些类。但我看不到这些课程的结果。我能看到的唯一结果是一种方法“EnhancedClass.access$000”,这不是很有帮助。其他班级正在上课。

有人知道解决方法吗?或者知道我做错了什么?

How can I use the profiler from NetBeans 6.8 or 6.9 (choosing 'entire application') with guice enhanced classes?

I am using google guice 2.0 (with warp persist 2.0-20090214) for some classes and wanted to profile those classes. But I cannot see a result for those classes. The only result I can see is for one method 'EnhancedClass.access$000' which is not very helpful. Other classes are working.

Does somebody know a workaround? Or know what I am doing wrong?

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

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

发布评论

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

评论(1

や莫失莫忘 2024-09-18 23:33:17

探查器会产生这些丑陋的结果,因为 NetBeans 没有可用的增强类的源代码。因此,您需要避免 Guice 需要首先通过

  • 打破导致它们的循环依赖(-ies)来生成这些类,
  • 或者如果您正在使用 Guice 的 AOP 功能,我认为您运气不好

The profiler produces these ugly results because there is no source code available to NetBeans for the enhanced classes. So you need to avoid that Guice needs to produce these classes in the first place by

  • breaking the circular dependency (-ies) that cause them,
  • or if you are using the AOP features of Guice I think you're out of luck
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文