Profiler sees uncalled methods

Questions about YourKit Java Profiler
Post Reply
lodnikova
Posts: 1
Joined: Tue Nov 11, 2014 5:09 pm

Profiler sees uncalled methods

Post by lodnikova »

I am trying to profile multidimensional array implementations in Java and trying to use Java Profiler for it.

Unfortunately I can't understand all indications.

My test project is here: https://github.com/lodnikova/Try_MultidimBenchmark3

It tries to create 4 big multidimensional array of different implementations and measure their performance.

Profiler is running from Eclipse and in tracing mode.

The result is follows:

Image

This looks like method println() was called from Array1.get() five times.

But this can't be true, since the code of get() is follows:

Code: Select all

public Double get(int i, int j, int k, int l) {
Object[] subdelegate = getArray(delegate, i, j, k);
return (Double) subdelegate[l];
}
i.e. no prints.

How to explain this?
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Re: Profiler sees uncalled methods

Post by Anton Katilin »

Hi,

We've reproduced the problem and are investigating it.

Best regards,
Anton
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Re: Profiler sees uncalled methods

Post by Anton Katilin »

An update: we've found the problem is reproducible with adaptive tracing only.
If adaptive tracing is turned off, there is no problem:
http://www.yourkit.com/docs/java/help/t ... ttings.jsp
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Re: Profiler sees uncalled methods

Post by Anton Katilin »

An update:

The newest builds of version 2014 address the problem.

Version 2014 contains a partial fix. It works in this and many other cases.

The problem is fully eliminated in version 2015, its early access (EAP) build is now available:
http://www.yourkit.com/eap
Post Reply