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()?
Asked
Active
Viewed 73 times
1 Answers
1
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.

C. K. Young
- 219,335
- 46
- 382
- 435
-
Of course not. VisualVM uses the same code base as NetBeans. :-) – C. K. Young Jun 23 '13 at 20:49