New answers tagged metrics
http://newrelic.com/ is a newish service that might help you. It's essentially a profiler with web-based display, and can show number of invokations per minute of a specific method. YMMV.
Depends on when you want to measure, you can use http://perfinsp.sourceforge.net/jprof.html in development to get a profile of your program. I've never use is, but I've used 'gprof' for non-java codes. If you want to monitor your program in production, you can try http://newrelic.com. It gives you basically everything you mentioned and more but involve ...
As far as I know there aren't anything like @CountHits. But if you are so keen in knowing the metrics like the no of clicks and all I would suggest you to use a logging library like log4j to log all the event details and then use a search/analyze tool like Splunk(http://www.splunk.com/) to find out whatever interests you in an elegant way.
I think you may find it difficult to find publicly visible projects with so many violations. However such projects do exist. In fact I would guess that any company using Sonar internally for their private source code could report a horror story (at least in the beginning!) As corporate code does not get the level of scrutiny of an open source project and ...
Top 50 recent answers are included