I would like to time page loading/rendering throughout my app. I have
overridded doService in ApplicationServlet which allows me to time
everything, too much actually. Is it possible to use Tapestry and
determine what 'type' of request is being processed? I could always
look at the RequestParameters and filter out assets, etc. but it would
be nice to use the framework.
protected void doService(HttpServletRequest request,
HttpServletResponse response)
throws IOException, ServletException
{
ToStringBuilder builder = new ToStringBuilder("",
MyEngine.STRING_STYLE);
MultiTimer.startTimer(request, 'd', "doService");
super.doService(request, response);
String pageInfo = ""; //I would like to figure out if the
request is for a page, asset, get the page's name, etc.
MultiTimer.stopTimerPrint(request, 'd', "doService", pageInfo);
}
Thanks,
Ross