• Post Reply Bookmark Topic Watch Topic
  • New Topic

Use profiler to get execution time on each class/methods  RSS feed

 
Raj Ohadi
Ranch Hand
Posts: 316
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have never used a profiler tool before. I know there are many tools over there. Just a general question -- Suppose I have a J2EE application and I hook a profiler tool with my application server. Then I start monitoring. When I click a submit button, it may trigger several classes and many methods in each classes. In order to know how much time is spend on each method of each class, do I need to explicitly list out those classes and methods to be monitored first and 'tell" the profiler what classes/methods I want to watch ? Is there a way the profiler can automatically detect what classes/methods this button click triggers and then give me the time allocation information ?
 
steve souza
Ranch Hand
Posts: 862
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are lots of tools out there. Go to www.javaperformancetuning.com for a list of them. The jamon servlet filter will have perfomance stats for your servlets/jsps, and it can be used to monitor jdbc with no code changes. It can monitor interfaces with one line per interface being monitored.

AOP is a great option for this if you are familiar with it. You must specify what you want to monitor, but i believe it supports wildcards for classes/methods. Spring framework uses this approach.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!