1.在eclipse里安装tptp
- From the menu in Eclipse, select Help > Install New Software...
- Enter the TPTP update site URL (http://download.eclipse.org/tptp/updates) in the Work with field.
- Select the version of TPTP to install, or select a newer version to upgrade to.
- Click Next , and follow the instructions to complete the installation. Restart Eclipse when prompted.
2.安装Agent Controller
到http://www.eclipse.org/tptp/home/downloads/?ver=4.7.0#agentController下载Agent Controller
解压后直接运行bin目录下的ACServer.exe并启动了Agent服务,默认端口是10006,
3.让eclipse连上Agent Controller
如图设置10002为10006,
还要设置缺省的主机,
4.把应用程序作为profile运行
右键一个应用程序,选择profile as ---Java Application,便可以打开Profiling and logging 透视图,进行监控程序。
应用程序必须是长久驻留的程序,如果一下子就运行完了,就没有监控的意义了