Is there any possible way to view more detailed information about methods in VisualVM?

StackOverflow https://stackoverflow.com/questions/17265094

  •  01-06-2022
  •  | 
  •  

문제

For example, say I have a method doThis() that VisualVM shows has the greatest "Self time". Would it be possible to view the time or CPU usage of specific lines of code or method calls within doThis()?

도움이 되었습니까?

해결책

No, profiling happens on method entry and exit, and not on every line of code. You will have to split off half the lines into separate methods if you want to see which half is the most work-intensive.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top