Custom JSP taglib. Lets you measure execution time for
your JSP code and use calculated data in your algorithms. You have to use this taglib as an
interface for Profile filter. For example:
<%@ taglib uri="taglib.tld" prefix="calc" %> Min execution time for this page: <calc:getMinTime /> Max execution time for root page <calc:getMaxTime uri="/"/> So you may request minimal, maximal and average execution time for you pages. And these data will be accumulated by Profile filter. Tags are: getCount Returns counter for the given page. Parameters are: 1) uri Optional parameter. Describes a page.
By default tag will request data for the current page.
getMaxTime Returns maximal time for the given page. Parameters are: 1) uri Optional parameter. Describes a page.
By default tag will request data for the current page.
getMinTime Returns minimal time for the given page. Parameters are: 1) uri Optional parameter. Describes a page.
By default tag will request data for the given page.
getAvgTime Returns average time for the given page. Parameters are: 1) uri Optional parameter. Describes a page.
By default tag will request data for the current page.
reset Resets the stats for the given page (all pages). Parameters are: 1) uri Optional parameter. Describes a page. By default tag will reset data for the current page. If you are using uri="*" tag will reset all the accumulated statistics. forEachRecord Body tag loops over accumulated data. Parameters are: none. within the body you mau use nested variables count, uri, minTime,
avgTime, maxTime as a reference for the current data. For example:
<%@ taglib uri="taglib.tld" prefix="calc" %> <calc:forEachRecord> <br>URI: <%=uri> average execution time for this page is: <%=minTime%> </calc:forEachRecord> for downloading: Library: profflt.jar Description: taglib.tld See also Coldtags suite - the largest collection of custom JSP tags.
|
Also in Coldtags:
|