How to measure performance in Java developement

前端 未结 7 1315
温柔的废话
温柔的废话 2020-12-10 16:13

Is there any tool can measure execution time for each function call and find out bottle neck for a given developing java j2se project? Thanks!

7条回答
  •  臣服心动
    2020-12-10 16:35

    You are looking for a profiler. I know that NetBeans includes a decent one.

    You can also look at this question: Open Source Java Profilers.

    It seems that the JDK 1.6 comes with a basic profiler. So maybe you want to give it a try first.It should be included with the VisualVM that comes with your jdk6: visualvm profiler

提交回复
热议问题