Reputation: 141080
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.
Upvotes: 6
Views: 690
Reputation: 8054
The focus of code coverage is only if a line is executed or not. Nothing more.
To get counters you would have to look at profiler software and not code coverage.
There are plugins for both Eclipse and Netbeans. I am not sure if they show counters per line, but I think that they show counters per method, which might be what you want...
(source: free.fr)
Upvotes: 1
Reputation: 21595
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
Upvotes: 1
Reputation: 65843
What's wrong with writing to a log file or to screen or using a counter?
Upvotes: 1
Reputation: 17375
In NetBeans 6.8 there is a nice code coverage tool which does pretty much that what you want but actually only for ruby. (right click project -> code coverage)
But could you use an ant task or maven plugin? Then Take a look at this list
Upvotes: -1
Reputation: 4048
Have a look at the breakpoint properties in eclipse may be you can configure a variable to capture the hitcount
Upvotes: 1