`
alexgreenbar
  • 浏览: 87119 次
  • 性别: Icon_minigender_1
社区版块
存档分类
最新评论

profile your Eclipse plugins using TPTP

阅读更多
At end of project development, profile your application will become important, at least it's better to know the hot spots of your application, and think about improving it.

There exist many different commercial and open source  profile tools for java, but in Eclipse area, TPTP seems the best choice because TPTP itself is a suite of Eclipse plugins too.

TPTP(http://www.eclipse.org/tptp/) is a giant/complex project of Eclipse, it try to supply a one stop solution based on Eclipse, which include testing, monitoring, tracing and profiling functionalities.

Most of documents and tutorials of TPTP are focus on how to profiling a java Application(even Eclipse workbench itself is a java Application too, but at least, it's has special feautres), but ignore how to profiling Eclipse plugins, or the runtime workbench of Eclipse when you debugging your Eclipse plugins, which most of Eclipse plugin developers are interesting on

TPTP profiling using Agent mechanism to collect data, the latest release of TPTP also include a IAC(Integrated Agent Controller) to make profiling simple, but unfortunately it's hard to profile Eclipse plugin using IAC, it seems can't  profile Eclipse plugin at all even it's very convenient to profile a standalone java Application, so here I will profile Eclipse plugin using stand alone Agent Controller, also all examples here are running on Linux.

1. prepare environment

a. First, you need install Eclipse and TPTP
[url] http://www.eclipse.org/tptp/home/downloads/ [/url]
[url]http://www.eclipse.org/tptp/home/downloads/installguide/InstallGuide44.html [/url]

b. Install Agent Controller, you could test it follow tutorial below
[url] http://www.eclipse.org/tptp/home/downloads/ [/url]
http://www.eclipse.org/tptp/home/downloads/installguide/agentcontroller_44/linux/getting_started.html


2. profile steps

a. start Agent Controller
$ACStart


b. start your runtime workbench which containts all of your plugins using JVM arguments below
-XrunpiAgent:server=enabled


or you can start a Eclipse workbench which include all of your plugins using command like

eclipse -vmargs -XrunpiAgent:server=enabled


the -XrunpiAgent will notice Agent Controller of your instance of Eclipse workbench, if you work on Linux you need set LD_LIBRARY_PATH before you start piAgent like

$export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/local/<agent controller dir>/lib


if you work on Windows, add directory above to your PATH environment

c. do profile
* start a Eclipse workbench
* switch to "profiling and logging" perspective
* open profile configuration dialog, create a new "Attach - Java process" entry
* select the running Agent from Host tab, you can't use "Local Direct Connection" because we use a stand alone Agent Controller now, you could verify the agent from the PID you get, which must equtal to PID of your Eclipse workbench which contains all of your plugins
* then set the profile filter set for your plugins
* click profile button, do profile, that's it.
分享到:
评论
2 楼 alexgreenbar 2007-10-29  
maomaode 写道
hah, 我也写了一篇,需要指出的是AC, 在最新的tptp里不是必须的,tptp会自动启动ac, 此外jdk6
里,应用启动的参数有所不同, 具体请拜读http://maomaode.bokeland.com/blog/3/96/2007/10/28/290059
hehmao
sure, but the AC which stared by TPTP automatically doesn't suit for Eclipse plugin profiling, it's a java implementation and the performance is very bad. Actually even native AC is a little bit slow because profiling need tons of data collection.
1 楼 maomaode 2007-10-28  
hah, 我也写了一篇,需要指出的是AC, 在最新的tptp里不是必须的,tptp会自动启动ac, 此外jdk6
里,应用启动的参数有所不同, 具体请拜读http://maomaode.bokeland.com/blog/3/96/2007/10/28/290059
hehmao

相关推荐

    hadoop 2.2 eclipse plugins 插件

    hadoop 2.2 eclipse plugins 插件 拷贝至plugins即可 留给自己的,当做备份用

    Hibernate Tools for Eclipse Plugins 的安装和使用

    【Hibernate Tools for Eclipse Plugins】是Eclipse集成开发环境中用于支持Hibernate框架的一组插件,它提供了许多方便开发者的功能,如代码生成、配置文件编辑、逆向工程等。这些工具极大地简化了Hibernate应用的...

    Hibernate Tools For Eclipse Plugins

    Hibernate Tools is a toolset for Hibernate implemented as an integrated suite of Eclipse plugins, together with a unified Ant task for integration into the build cycle. Hibernate Tools is a core ...

    axis2 eclipse plugins 插件

    axis2-eclipse-codegen-wizard-1.4.zip axis2-eclipse-service-archiver-wizard-1.4.zip 官方封了中国IP,不好下到,解压就看到了!

    hadoop 1.0.3 eclipse plugins 插件

    hadoop 1.0.3 eclipse plugins 插件

    java tools eclipse plugins

    Java Tools Eclipse Plugins是一个重要的开发工具集,主要用于提升Java开发者在Eclipse集成开发环境(IDE)中的工作效率。Eclipse是一款开源的、跨平台的IDE,它提供了丰富的插件系统,允许开发者根据自己的需求扩展其...

    Eclipse Plugins En Second Edition

    Eclipse: Building Commercial-Quality Plug-ins was an invaluable training aid for all of our team members. In fact, training our team without the use of this book as a base would have been virtually ...

    hadoop 2.0.0 eclipse plugins 插件

    hadoop 2.0.0 eclipse plugins 插件

    eclipse-plugins

    "eclipse-plugins"这个资源指的是一个特定的Eclipse配置,其中包含了针对特定功能或框架的插件集合。在这个案例中,Eclipse Mars 4.5.1 版本已经预装了Spring Boot和Activiti等插件,这些都是开发人员在Java应用开发...

    eclipse plugins properties 文件编辑工具5.3.5

    eclipse 插件,用于properties文件编辑,支持eclipse 3.5,可离线使用 jp.gr.java_conf.ussiy.app.propedit_5.3.5,通过eclipse更新源获取。

    EclipsePlugins3rdEdition

    Eclipse Plugins 3rd part-1

    CDT+DLTK Eclipse Plugins

    CDT+DLTK Eclipse Plugins, 直接拷贝,无需安装。

    Eclipse plugins

    Eclipse是一款著名的开源集成开发环境(IDE),广泛用于Java、C++、Python等多种编程语言的开发。Eclipse的强大力量在于其可扩展性,这主要归功于丰富的插件系统。下面将详细介绍标题和描述中提到的三个Eclipse插件...

    clearcase for eclipse plugins

    《ClearCase for Eclipse 插件详解》 在软件开发领域,版本控制系统对于团队协作和代码管理至关重要。IBM Rational ClearCase 是一款强大的版本控制工具,它提供了丰富的功能来管理软件开发过程中的源代码和其他...

    Eclipse及plugins

    Eclipse是一款广泛使用的开源集成开发环境(IDE),尤其在Java开发者中非常流行。它以其强大的可扩展性而闻名,这主要归功于其插件系统。Eclipse的插件允许开发者根据自己的需求定制工作环境,增加对不同语言、框架...

    HQL Eclipse Plugins 配置教程

    不喜欢使用myEclipse的朋友可以尝试下 最近在项目中使用Hibernate,由于需要...附件中为本人配置的eclipse HQL Plugins截图 希望对大家有所帮助。 工具很好用,可以识别出HQL文的语法正确,并且解析为标准SQL语句。

Global site tag (gtag.js) - Google Analytics