Java profiling - how can I get a method by method analysis of my application?

后端 未结 7 1250
挽巷
挽巷 2020-12-29 03:01

I want to run my Java app and for a given workload be able to see:

  • how many times a given function was called
  • how expensive each function call is in
7条回答
  •  感情败类
    2020-12-29 03:54

    Simplest approach for a program running in java 6 from Sun is to use the jvisualvm program in the jdk. Allows you to attach and profile without any special setup.

提交回复
热议问题