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.

Call ancestry and invocation counts are wrong

Moderators: Vladimir Kondratyev, Anton Katilin

Call ancestry and invocation counts are wrong

Postby andulvar » Wed Dec 15, 2010 1:18 am

I tried profiling a Silverlight 4 application. I really like the output and the detail of the tool. However, I notice that call counts and ancestries are not reported correctly. I observe the following:

- I have methods that are called 60,000 times, but the "Invocation Count" shows only one invocation. Oddly, the callees of this method show up with more reasonable numbers of calls.

- I have methods that simply do not show up in the call tree at all. I know they are called - they are direct callees of methods that are in the call tree, and they are on the only control flow path.

- I have methods that are in the tree, but attributed to a different caller. That is, a method that I expect to be a callee of a "parent" is in fact attributed to the parent's parent method.

The first thing I thought was that I was somehow profiling an optimized application, but I confirmed that I am profiling the debug build of the app.
andulvar
 
Posts: 4
Joined: Tue Dec 14, 2010 7:35 pm

Re: Call ancestry and invocation counts are wrong

Postby Anton Katilin » Wed Dec 15, 2010 11:25 am

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

Re: Call ancestry and invocation counts are wrong

Postby andulvar » Thu Dec 16, 2010 1:57 am

I understand the filters. I have left the filters at the defaults. I don't understand how filtering on System.*, etc. would cause the profiler to report the wrong call counts and wrong ancestry on the functions in my program, or why it would cause my own function calls to simply go unreported, as if they had not been called.
andulvar
 
Posts: 4
Joined: Tue Dec 14, 2010 7:35 pm

Re: Call ancestry and invocation counts are wrong

Postby andulvar » Thu Dec 16, 2010 9:10 pm

I figured out the call counts, I think. I was seeing the call counts on one of three code paths to a particular method call. The sum of all code paths looks correct, so I think it was just me misinterpreting the result screen.

I still haven't found an explanation for the wrong parentage or the missing function calls. I'll try to find a more precise description of those.
andulvar
 
Posts: 4
Joined: Tue Dec 14, 2010 7:35 pm

Re: Call ancestry and invocation counts are wrong

Postby Anton Katilin » Fri Dec 17, 2010 1:42 pm

Could you please provide snapshot demonstrating the issue.

ftp://upload.yourkit.com/pub/
user ftp
empty password
Anton Katilin
 
Posts: 5575
Joined: Wed Aug 11, 2004 8:37 am


Return to .NET Profiler

Who is online

Users browsing this forum: No registered users and 4 guests

cron