Performance Meters"

From Documentation
(Created page with '{{ZKDevelopersReferencePageHeader}} <javadoc type="interface">org.zkoss.zk.ui.util.PerformanceMeter</javadoc> is a collection of callbacks that the implementation could know whe…')
 
Line 1: Line 1:
 
{{ZKDevelopersReferencePageHeader}}
 
{{ZKDevelopersReferencePageHeader}}
  
<javadoc type="interface">org.zkoss.zk.ui.util.PerformanceMeter</javadoc> is a collection of callbacks that the implementation could know when a request is sent, arrives and is processed.
+
<javadoc type="interface">org.zkoss.zk.ui.util.PerformanceMeter</javadoc> is a collection of callbacks that the implementation could know when a request is sent, arrives or is is processed.
  
 
[[Image:performancemeter.png]]
 
[[Image:performancemeter.png]]

Revision as of 03:52, 27 July 2011

PerformanceMeter is a collection of callbacks that the implementation could know when a request is sent, arrives or is is processed.

Performancemeter.png

As show above, T1-T5 identifies the following callbacks.

Thus,

  • Server Execution Time: T3 - T2
  • Client Execution Time: T5 - T4
  • Network Latency Time: (T4 - T3) + (T2 - T1)

Notice that, when we make a connection to load a page for the first time, only Server Execution Time is available. T4 and T5 will be saved on the client side, and sent back along with the next request.

Once implemented, you could register it by specifying the following in WEB-INF/zk.xml (assume the class is called foo.MyMeter):

<zk>
    <listener>
        <listener-class>foo.MyMeter</listener-class>
    </listener>
</zk>

Version History

Last Update : 2011/07/27


Version Date Content
     



Last Update : 2011/07/27

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.