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

[jira] [Commented] (WICKET-4015) Implement a listener which can be used to measure the render time of a component

    [ https://issues.apache.org/jira/browse/WICKET-4015?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13096047#comment-13096047 ] 

Igor Vaynberg commented on WICKET-4015:
---------------------------------------

you are not going to add a behavior to every single component instance out there, are you?

> Implement a listener which can be used to measure the render time of a component
> --------------------------------------------------------------------------------
>
>                 Key: WICKET-4015
>                 URL: https://issues.apache.org/jira/browse/WICKET-4015
>             Project: Wicket
>          Issue Type: New Feature
>          Components: wicket, wicket-devutils
>    Affects Versions: 1.5-RC7
>            Reporter: Martin Grigorov
>            Assignee: Martin Grigorov
>             Fix For: 1.5.1
>
>         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.
> Update: the instantiation time is not really useful in the way we can measure it so it wont be part of this feature request.

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