Profile filter taglib ver. 1.4

    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.
2) id Optional parameter. Describes a name for page scope variable (type is java.lang.Long) for data. Without this parameter tag just prints data.

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.
2) id Optional parameter. Describes a name for page scope variable (type is java.lang.Long) for data. Without this parameter tag just prints data.

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.
2) id Optional parameter. Describes a name for page scope variable (type is java.lang.Long) for data. Without this parameter tag just prints data.

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.
2) id Optional parameter. Describes name for page scope variable (type is java.lang.Long) for data. Without this parameter tag just prints data.

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

© Coldbeans      Comments?

See also Coldtags suite - the largest collection of custom JSP tags.

Also in Coldtags: