如何测量Eclipse启动时间?
如何测量的启动持续时间,即Eclipse启动所需的时间 “启动持续时间”为:如何测量Eclipse启动时间?,eclipse,performance,shell,time,performance-testing,Eclipse,Performance,Shell,Time,Performance Testing,如何测量的启动持续时间,即Eclipse启动所需的时间 “启动持续时间”为: 从执行eclipse或eclipse.exe命令开始 Eclipse UI启动并可用的时间(大约在用户可以使用鼠标、菜单和编辑器的时间) 在bashshell中,我测试了time命令,但是,它在~/path/to/eclipse/eclipse进程关闭/终止之前不会应答 ~$ time ~/path/to/eclipse/eclipse org.eclipse.m2e.logback.configuration: Th
eclipse
或eclipse.exe
命令开始time
命令,但是,它在~/path/to/eclipse/eclipse
进程关闭/终止之前不会应答
~$ time ~/path/to/eclipse/eclipse
org.eclipse.m2e.logback.configuration: The org.eclipse.m2e.logback.configuration bundle was activated before the state location was initialized. Will retry after the state location is initialized.
[...] truncated
16:12:32,920 |-INFO in ch.qos.logback.classic.joran.JoranConfigurator@4df07ddd - Registering current configuration as safe fallback point
^ here I closed Eclipse UI
real 0m11.724s
user 0m35.608s
sys 0m0.868s
如何实现这一点?
编辑:
- 一个可能的解决办法是
- 另一种方法是解析Eclipse日志(我正在工作) (关于此)
eclipse.ini
)。(见附件)注意:目前正在Ubuntu上运行Eclipse。欢迎对Windows或Linux平台提出任何建议。Vogel在这里介绍了一种内置解决方案: 要点是在文件
中设置一些首选项。选项放在eclipse安装文件夹中:
# turn on debugging for the org.eclipse.core plugin.
org.eclipse.osgi/debug=true
# turn on execution time of the activator for the plug-ins
org.eclipse.osgi/debug/bundleTime=true
# turn on total execution time of the plug-ins
org.eclipse.osgi/debug/bundleStartTime=true
然后通过以下命令行启动Eclipse
./eclipse -debug
然后,他甚至给出了一套很好的小脚本,帮助破译痕迹。
它从osgi组件测量每个人的启动时间/激活时间。使用秒表。说真的。谢谢你的提示,但我脑子里想的更准确一点;)这很容易重复(例如计算平均值)。目前正在根据parsingWell的日志进行这项工作,我之所以说使用秒表,是因为我认为你不会找到更好的。或者至少在不修改Eclipse的情况下。