Fully featured low overhead profiler for Java EE and Java SE platforms.
Ultimate profiling and monitoring solution for Gradle, Maven, Ant, JUnit and TestNG.
Easy to use performance and memory profiler for .NET framework.

Profiler sees uncalled methods

Moderators: Vladimir Kondratyev, Anton Katilin

Profiler sees uncalled methods

Postby lodnikova » Tue Nov 11, 2014 5:17 pm

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?
lodnikova
 
Posts: 1
Joined: Tue Nov 11, 2014 5:09 pm

Re: Profiler sees uncalled methods

Postby Anton Katilin » Wed Nov 12, 2014 2:25 pm

Hi,

We've reproduced the problem and are investigating it.

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

Re: Profiler sees uncalled methods

Postby Anton Katilin » Wed Nov 12, 2014 2:34 pm

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: 5651
Joined: Wed Aug 11, 2004 8:37 am

Re: Profiler sees uncalled methods

Postby Anton Katilin » Mon Dec 01, 2014 10:56 am

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
Anton Katilin
 
Posts: 5651
Joined: Wed Aug 11, 2004 8:37 am


Return to Java Profiler

Who is online

Users browsing this forum: No registered users and 5 guests