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.

wall time for sun.nio.ch.SocketDispatcher

Moderators: Vladimir Kondratyev, Anton Katilin

wall time for sun.nio.ch.SocketDispatcher

Postby knutwannheden » Mon Oct 02, 2017 2:43 pm

Hi,

I was wondering if there is any particular reason why YourKit doesn't by default measure the native methods of sun.nio.ch.SocketDispatcher using wall time. If yes, why? And are there any other blocking I/O methods in the JDK which are measured using CPU time for the same reason?

Thanks,
Knut
knutwannheden
 
Posts: 13
Joined: Wed Dec 07, 2011 3:18 pm

Re: wall time for sun.nio.ch.SocketDispatcher

Postby Anton Katilin » Tue Oct 03, 2017 11:22 am

Hello Knut

CPU tracing by default measures wall time for all methods:
https://www.yourkit.com/docs/java/help/ ... ttings.jsp

CPU sampling by default measures wall time for some I/O methods and Thread.sleep():
https://www.yourkit.com/docs/java/help/ ... ttings.jsp

Please see screenshots in both help topics showing the defaults.

The method you've mentioned is currently not in the list of sampling's wall time defaults. Perhaps we should consider updating this list and investigate whether we should include more methods to it, likely those which appeared since the time the current list had been introduced.

Which other methods would you suggest to have in the list by default?

Please note that you don't have to wait until/whether we update the defaults but customize the list yourself to address your needs.

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

Re: wall time for sun.nio.ch.SocketDispatcher

Postby knutwannheden » Tue Oct 03, 2017 12:16 pm

Hi Anton,

At the moment the native methods of sun.nio.ch.SocketDispatcher are the only ones I am aware of which IMHO are missing from this list. I have already added them to the settings I use in YourKit.

I just wanted to make sure that there is no good reason to not include those methods in the list of methods measured using wall time.

It would be great if you could verify that it makes sense to add sun.nio.ch.SocketDispatcher to the list. If yes, I suppose it could be added to YourKit's default list.

Regards,
Knut
knutwannheden
 
Posts: 13
Joined: Wed Dec 07, 2011 3:18 pm

Re: wall time for sun.nio.ch.SocketDispatcher

Postby Anton Katilin » Tue Oct 03, 2017 5:54 pm

Hi Knut,

We will consider adding sun.nio.ch.SocketDispatcher to the list.

Regards,
Anton
Anton Katilin
 
Posts: 5576
Joined: Wed Aug 11, 2004 8:37 am


Return to Java Profiler

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 6 guests

cron