Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-4015

Implement a listener which can be used to measure the render time of a component

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.5-RC7
    • 1.5.1
    • wicket, wicket-devutils
    • None

    Description

      It would be a nice addition to org.apache.wicket.markup.html.debug.PageView to show how much time it took for a component to be fully initialized and the time to be rendered. This can be accomplished with a listener which implements IComponentInstantiationListener, IComponentInitializationListener, IComponentOnBeforeRenderListener, IComponentOnAfterRenderListener.

      The initialization time measures from the call to Component.<init> (IComponentInstantiationListener), to the call Component.onInitialize() (IComponentInitializationListener) because there is no way to know when the component constructor ends.

      Render time measures the time between IComponentOnBeforeRenderListener.onBeforeRender() and IComponentOnAfterRenderListener.onAfterRender().

      The duration is collected in the meta data of the respective component.

      The listener will be part of wicket-devutils sub-project.

      Update: the instantiation time is not really useful in the way we can measure it so it wont be part of this feature request.

      Attachments

        1. WICKET-4015.patch
          9 kB
          Martin Tzvetanov Grigorov

        Activity

          People

            mgrigorov Martin Tzvetanov Grigorov
            mgrigorov Martin Tzvetanov Grigorov
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: