On Jan 30, 2008 5:36 PM, Z W <[EMAIL PROTECTED]> wrote:

> Is there an open source performance tool out there that gives a complete
> "picture" on all the methods called
> in a java application run ? In other words, I like to know if there's a tool
> out there that could help me
> determine if a method within a java app that would indicate a "bottleneck"
> performance issue
> so that we could improve the algorithm performance.

Th Java heap profiling agent is extremely useful for profiling method calls:

http://prefetch.net/blog/index.php/2008/02/02/profiling-java-methods-with-the-heap-profiling-agent/

If you need to profile method calls in production, you should take a
look at the j_cputime.d script [1] in the DTraceToolkit.

- Ryan
-- 
UNIX Administrator
http://prefetch.net

[1] j_cputime.d output

$ j_cputime.d 3
     Top 3 counts,
     PID    TYPE       NAME                                              COUNT
     20221  method     java/lang/String.getChars                         76183
     20221  method     java/lang/System.arraycopy                       167600
      0     total          -                                            944774

     Top 3 exclusive method on-CPU times (us),
     PID   TYPE       NAME                                               TOTAL
     20221 method     java/util/Arrays.copyOf                           174943
     20221 method     java/lang/System.arraycopy                        189579
        0  total      -                                                1346227

     Top 3 inclusive method on-CPU times (us),
     PID   TYPE       NAME                                               TOTAL
     20221 method     java/lang/AbstractStringBuilder.expandCapacity    339847
     20221 method     java/lang/AbstractStringBuilder.append            664615
     20221 method     java/lang/StringBuilder.append                    772450
_______________________________________________
perf-discuss mailing list
perf-discuss@opensolaris.org

Reply via email to