有人可以告诉我在代码中使用com.jprofiler.agent.Controller需要做些什么吗?
我有GWT / GAE应用程序,我在IntelliJ IDEA 11的调试器下运行。我有JProfiler 7.0.1。
我用Google搜索了一下,似乎我需要将此"-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,但它似乎无效。
答案 0 :(得分:1)
通常,
-agentpath:[path to jprofilerti.dll]
就够了。该过程将等待JProfiler GUI连接。这样就可以使用正确的分析设置,并且开销最小。
要立即启动,请传递
-agentpath:[path to jprofilerti.dll],nowait
然后,配置文件代理必须重新转换类,具体取决于您的过滤器设置。
使用插件管理器中的JProfiler插件将使所有这些都变得不必要。