views:

73

answers:

3

Are there any free tools for Java (preferably Eclipse) that can give metrics on both how frequently code is executed (based on a recorded run) and do a side by side with coverage? I'm not sure if there is already a metric for measuring this but it seems it would be an interesting one to see.

A: 

Are you looking for a Java profiler (something that gives you function call counts and elapsed execution times)? If so, you might want to look at the Eclipse Test & Performance Tools Platform. It doesn't look like it will give you a side-by-side comparison of two pieces of code, but it might be worth looking at.

Erich Douglass
I've used TPTP before as well. One of things I guess I'm really looking for is a useful way to combine these metrics - maybe I can invent one.
Jeff Storey
+2  A: 

do you mean running the application as in production ? if in dev environ ...not sure if this is what you are looking for - http://insectj.sourceforge.net/

daedlus
this looks useful, thanks.
Jeff Storey
also, I did mean in the dev environment. sorry forgot to clarify that.
Jeff Storey
A: 

The SD Java Profiler collects profiling data in a way that generalizes test coverage. So if you have its profile data displayed, you have the test coverage data effectively displayed too; there's no need for a side-by-side comparison.

Not free, and doesn't plug into eclipse yet, but does use a Java GUI.

Ira Baxter