public class RenderPerformanceListener extends Object implements IComponentInstantiationListener
Behavior
that measures the time needed by a component to
render itself. MarkupContainer
's render includes the time for rendering its children so
the time accumulates.
To enable this listener use the following in YourApplication.init():
getComponentInstantiationListeners().add(new RenderPerformanceListener());
Constructor and Description |
---|
RenderPerformanceListener() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
accepts(Component component)
Filters which components' render performance should be measured.
|
void |
onInstantiation(Component component)
Called for every component that is instantiated.
|
public void onInstantiation(Component component)
IComponentInstantiationListener
onInstantiation
in interface IComponentInstantiationListener
component
- the component that is being instantiated.protected boolean accepts(Component component)
component
- the component that is instantiatedtrue
if render time should be measured the for this component, false
- otherwiseCopyright © 2006–2021 Apache Software Foundation. All rights reserved.