To find a run counter for the Java IDE

Is there any plugin for any IDE that shows the number of times a line is run in code?

Eclipse ECLemma does not seem to have a parameter for displaying the runtime in the left pane, for example, in the WebCat service.

+6
java eclipse ide counter
source share
5 answers

I think an eclipse test and toolbar performance could help you with this. It includes a profiler that will process your code and provide the necessary information. By carefully managing profiling, this can be a big hit in performance, depending on how many functions / classes you control.

+1
source share

Look at the properties of the breakpoint in eclipse, maybe you can set the variable to capture hitcount

+1
source share

The focus of code coverage is only if the line is executed or not. Nothing more.

To get counters, you should look at profiling software, not code coverage.

There are plugins for Eclipse and Netbeans. I'm not sure if they show counters per line, but I think they show counters per method, which may be what you want ...

alt text
(source: free.fr )

+1
source share

What is wrong with writing to a log file either from the screen or with the counter?

+1
source share

NetBeans 6.8 has a good code coverage tool that does a lot of what you want, but really only for rubies. (right click project → code coverage)

But can you use the ant task or the maven plugin? Then take a look at this list

-one
source share

All Articles