0

各位能否告诉我为了在我的代码中使用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,但它似乎不起作用。

4

1 回答 1

1

一般来说,

-agentpath:[path to jprofilerti.dll]

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

要立即启动,请通过

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

然后,分析代理必须根据您的过滤器设置重新转换类。

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

于 2012-01-12T11:15:28.473 回答