如何检查Eclipse插件的性能 [英] How to check Eclipse plugin performance

查看:157
本文介绍了如何检查Eclipse插件的性能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我一直在修改我们团队中使用的插件,我不想添加新的瓶子 - 颈部。



此外,我正在整合的eclipse花费太多时间安装插件。任何关于如何识别原因的建议?



所以我想知道一些关于



    的提示
  • 如何检查插件的性能 - 任何可用的工具。 (如java中的jprofiler或任何其他性能分析器工具)

  • 如何使用某些工具检查插件代码中的瓶颈。



有没有一个文档告诉我们做什么,不要插件开发。

解决方案

p>检查插件的性能与任何普通的java程序不同。它以类似的方式工作。看看这个问题



安装需要很长时间;看起来这将是一个潜在的程序P2的问题,而不是你的插件。在安装插件时,您的清单被读取,有关扩展的一些信息将保存在Eclipse中。实际的插件被复制。检查依赖关系。似乎这些东西不应该花那么长时间,除非你有一个非常大的插件?
也许你正在将插件安装到已经有很多插件的环境中?尝试下载一个干净的Eclipse,你有同样的问题吗?



确保您不要将插件设置为在用户启动Eclipse时自动启动。这是对用户造成混乱和一般减速的不良行为。当用户实际想要使用插件时,应该启动该插件,而不是之前的一个。



此外,我对此问题的回答可能有助于一般插件的设计。


I am new to Eclipse plugin development.

I have been modifying a plugin that was used in our team, and i don't want to add new bottle-necks.

Also the eclipse to which i am integrating to is taking too much time to install the plugin. any suggestion on how to identify the reason for that?

So i would like to know some tips on

  • How to check performance of a plugin - any tools that are available. (like jprofiler in java or any other performance analyser tool)
  • How to check for bottleneck in my plugin code using some tools.

And is there a doc that tell the do's and don't of the plugin development.

解决方案

Examining performance of a plugin isnt that much different from any ordinary java program. It works in similar ways. Look at this question for example.

It takes long to install; It seem like that would be an issue of the underlaying program, P2, rather than your plugin. At installation of a plugin your manifest is read, some information about your extensions are saved in Eclipse. The actual plugin is copied. Dependencies checked. It seems like these things shouldn't take that long, unless you have a very large plugin? Perhaps you are installing the plugin into an environment that already have alot of plugin? Try downloading a clean Eclipse, do you have the same issue there?

Make sure you don't set your plugin to start automatically when the user starts Eclipse. That is bad behaviour that causes clutter and general slowdown for the users. The plugin should be started when the user actually wants to use it, not a second before.

Also my answer to this question might help with the general design of the plugin.

这篇关于如何检查Eclipse插件的性能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆