How to measure Eclipse's boot duration, ie. time Eclipse takes to start?
With "Boot duration" being:
- from time
eclipse
oreclipse.exe
command is executed - to time Eclipse UI is started and available (approximately when user can use mouse, menus, and editors)
In a Bash Shell, I have tested the time
command, but, it does not reply until ~/path/to/eclipse/eclipse
process is closed / killed.
~$ 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
How to achieve this?
Edit:
- a possible solution would be to write an Eclipse plugin that is auto executed at start
- another way is to parse Eclipse logs (I am working on this)
Background / initial goal
- compare Eclipse boot durations between different Eclipse
configurations (
eclipse.ini
). (See How can you speed up Eclipse?) - See what impact does have a configuration change on Eclipse boot time
Note: currently running Eclipse on Ubuntu. Any advice for Windows or Linux platform is welcome.