Total method time in Java VisualVM

前端 未结 7 900
野趣味
野趣味 2020-12-04 21:09

In Java VisualVM, is there any way to display total method time, rather than \"self time\"? (The latter is not particularly useful, since it doesn\'t tell you anything about

7条回答
  •  半阙折子戏
    2020-12-04 21:36

    I think you want to find out how much time does each method execution takes. You would want to use JETM to monitor the performance. This would give you entrance time, exit time and a time difference for each method. You would find out which method is taking how much time.

    If you are using Spring then it becomes easy to integrate JETM http://jetm.void.fm/howto/spring_2_x_integration.html

提交回复
热议问题