The jamon
servlet filter allows you to do this. You do it with the following steps
1) paste the jamon filter into your web.xml file
2) make jamon jar available to your application
3) install the jamon war file to view the statistics
It is a no code solution and should only take a few minutes.
http://www.jamonapi.com