Great Stuff

Questions about YourKit Java Profiler
Post Reply
trix
Posts: 2
Joined: Wed Aug 11, 2004 12:17 pm

Great Stuff

Post by trix »

Great Stuff.

I was in the process of writing mail requesting some sort of forum for better feedback.

I like the YK profiling APIs.

Feature requests,

+ I dont suppose its possible to automatically take a memory and cpu snapshot for each JUnit test case?

+ It could be very handy, if, after profiling tests its is able to pop up the YourKit profiler with the associated .memory and .cpu dumps.

+ Code Coverage?

+ It could be _very_ nice to be able to run a test case, take a .memory/.cpu dump and then do a refactor and compare .memory and .cpu results.
It could be quite different to understand the differences but the results could be quite worthwhile.

-Tim
trix
Posts: 2
Joined: Wed Aug 11, 2004 12:17 pm

Whoops

Post by trix »

Sent too soon.

+ API: Regarding the APIs, (which are great since you can create tests that will snapshot specific areas). It would also be very nice to programmatically indicate the particular objects that you're looking for so that inside a JUnit test you can check the number of allocations, etc.
(nice but questionable).

+ Regarding the profiling tests and popping up the YourKit profiler above, this only makes sense if YourKit is able to detect a whole lot of stuff... and have it configurable re: IDEA integration plugin. This may be a whole lot of work that is again questionable but would be _very_ handy if automatic profiling of tests occurs.
Vladimir Kondratyev
Posts: 1624
Joined: Tue Aug 10, 2004 7:52 pm

Re: Great Stuff

Post by Vladimir Kondratyev »

trix wrote:Great Stuff.
+ I dont suppose its possible to automatically take a memory and cpu snapshot for each JUnit test case?
It's not directly possible. But as workaround you can just implement subclass of TestCase which captures snapshot in its tearDown()
trix wrote: + It could be very handy, if, after profiling tests its is able to pop up the YourKit profiler with the associated .memory and .cpu dumps.
In one of the next EAP builds we will add ability to specify parameters for yjp.bat. So it will be possible to run the profiler with given snapshots. Is it OK?
trix wrote: + Code Coverage?
Will be implemented in version next after 3.0.
trix wrote: + It could be _very_ nice to be able to run a test case, take a .memory/.cpu dump and then do a refactor and compare .memory and .cpu results.
It could be quite different to understand the differences but the results could be quite worthwhile.
Nice idea. In the next version (after 3.0) we are going to significantly improve support of performance testing. For example, we are going to release open API which allows to introspect CPU and memory snapshots to write comprehensive performance tests and have "snapshot storage" to track performance improvements/degradation during whole development process.
Chris
Posts: 6
Joined: Fri Aug 13, 2004 7:15 am

Post by Chris »

Nice idea. In the next version (after 3.0) we are going to significantly improve support of performance testing. For example, we are going to release open API which allows to introspect CPU and memory snapshots to write comprehensive performance tests and have "snapshot storage" to track performance improvements/degradation during whole development process.
No fair teasing us with version 4.0 features when 3.0 isn't even out the door yet! :)
Post Reply