You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Martin Grigorov (JIRA)" <ji...@apache.org> on 2011/09/01 10:02:09 UTC

[jira] [Updated] (WICKET-4015) Implement a listener which can be used to measure the initialization and render times of a component

     [ https://issues.apache.org/jira/browse/WICKET-4015?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Grigorov updated WICKET-4015:
------------------------------------

    Attachment: WICKET-4015.patch

Attaching the current version of the modifications I have locally.

> Implement a listener which can be used to measure the initialization and render times of a component
> ----------------------------------------------------------------------------------------------------
>
>                 Key: WICKET-4015
>                 URL: https://issues.apache.org/jira/browse/WICKET-4015
>             Project: Wicket
>          Issue Type: New Feature
>          Components: wicket-devutils
>    Affects Versions: 1.5-RC7
>            Reporter: Martin Grigorov
>            Assignee: Martin Grigorov
>         Attachments: WICKET-4015.patch
>
>
> 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.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira