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) |
public void onInstantiation(Component component)
onInstantiation in interface IComponentInstantiationListenerprotected boolean accepts(Component component)
component - the component that is instantiatedtrue if render time should be measured the for this component, false
- otherwiseCopyright © 2006–2020 Apache Software Foundation. All rights reserved.