【问题标题】:What do I need to do to use com.jprofiler.agent.Controller in my code?我需要做什么才能在我的代码中使用 com.jprofiler.agent.Controller?
【发布时间】:2012-01-12 02:09:32
【问题描述】:

请大家告诉我要在我的代码中使用com.jprofiler.agent.Controller 需要做什么?

我有 GWT/GAE 应用程序,我在 IntelliJ IDEA 11 的调试器下运行。我有 JProfiler 7.0.1。

我用谷歌搜索了一下,似乎我需要将这个 "-agentpath:C:\Program Files (x86)\jprofiler7\bin\windows\jprofilerti.dll,config=C:\Program Files (x86)\jprofiler7\api\samples\common\config.xml" "-Xbootclasspath/a:S:\Program Files (x86)\jprofiler7\bin\agent.jar" 传递给 JVM,但它似乎不起作用。

【问题讨论】:

  • 我记得 JProfiler 有 IDEA 插件。我不确定它是否有帮助。
  • 是的,它在 IDEA 11 中还不能工作 :(
  • IDEA 插件管理器中的新 JProfiler 插件是在 IDEA 11 发布时发布的,它确实适用于 IDEA 11
  • 插件是红色的,在我的情况下似乎被禁用。在 JProfiler 博客here 中,他们说工作插件将随 7.1 一起发布。我有 7.0.1。信息准确吗?
  • 是的,7.1 将捆绑新插件。但是,您已经可以从 IDEA 插件管理器中获取新插件。

标签: intellij-idea jprofiler


【解决方案1】:

一般来说

-agentpath:[path to jprofilerti.dll]

就够了。该过程将等待 JProfiler GUI 连接。这样它就可以以最小的开销使用正确的分析设置。

要立即启动,请通过

-agentpath:[path to jprofilerti.dll],nowait

分析代理将不得不重新转换类,具体取决于您的过滤器设置。

使用插件管理器中的 JProfiler 插件将使所有这些都变得不必要。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2010-12-31
    • 2012-07-13
    • 2021-07-22
    • 2020-08-20
    • 2016-11-29
    相关资源
    最近更新 更多