Class StartupTimeDiagnostic

  • All Implemented Interfaces:
    GuiceyLifecycleListener

    public class StartupTimeDiagnostic
    extends UniqueGuiceyLifecycleListener
    Startup time report. Timers could count only time AFTER guice bundle creation (with guice bundle itself).

    Report hacks dropwizard bundles and managed objects to track all bundles time. Note that it is impossible to track init time of bundles registered before guice bundle.

    Entire application startup time (measured since guice bundle creation) is split into 3 chunks:

    • init phase - all dropwizard bundle init methods called
    • run phase - all dropwizard bundles run methods called (+ time of Configuration and Environment creation); also includes application init method
    • web phase - everything after last dropwizard bundle run (including application run method)

    To avoid confusion with server startup time - jvm start time is also shown (time from jvm start and before guice bundle creation).

    Since:
    07.03.2025