Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

To find an execution line-counter for Java IDE

Is there any plugin to some IDE that show the number of times a line is run in the code?

Eclipse's ECLemma does not seem to have a setting to show execution times at the left-hand-side bar, like in the service WebCat.

like image 892
Léo Léopold Hertz 준영 Avatar asked Mar 22 '10 21:03

Léo Léopold Hertz 준영


3 Answers

I think the eclipse test and performance tools plateform would be able to help you with this. It includes a profiler which will instrument your code and provide the information you want. Careful with profiling, it can be a heavy performance hit depending on how many functions/classes you monitor

like image 173
Jean Avatar answered Oct 16 '22 07:10

Jean


Have a look at the breakpoint properties in eclipse may be you can configure a variable to capture the hitcount

like image 43
hakish Avatar answered Oct 16 '22 06:10

hakish


What's wrong with writing to a log file or to screen or using a counter?

like image 43
Chinmay Kanchi Avatar answered Oct 16 '22 06:10

Chinmay Kanchi