Performance profiling
wsadiq
Posts: 5
I had been using ANTS profiler version 2.7.1.20 and have just upgraded to 4.3.0.198. Running the two versions on the same .NET executables, I am gettign results that are quite different from each other. First, the number of methods profiled in the older version is much higher - 77 versus 17 in the newer version. I did not find a screen in the new version that asked me whther I wanted to profile all methods or only the ones that I had the source for.
The thing that I am most concerned about - I am sure it is not knowing how to use it correctly - is why were so few methods profiled (77 vs 17) in the new version. Some of the suspect methods, that I have the source for and were in the VS 2005 project beign profiled - did not even show up in the method grid.
Can someone please tell me what I may be doing wrong.
Thanks.
The thing that I am most concerned about - I am sure it is not knowing how to use it correctly - is why were so few methods profiled (77 vs 17) in the new version. Some of the suspect methods, that I have the source for and were in the VS 2005 project beign profiled - did not even show up in the method grid.
Can someone please tell me what I may be doing wrong.
Thanks.
Comments
There would be no reason why the new version wouldn't be profiling the same number if not more methods than V2.
To take the point about choosing what to profile it's just the 2nd option in the opening dialog.
By default we profile everything (methods with and without source but initially we hide the results for methods without source code as the default preference). The scope of what results are displayed in the UI can be easily changed from the combo box option on the bar above the code view.
Are you sure the PDB files for source files are placed in the same directory as the .exe for the methods you can't see? If we can't find the source then those methods will automatically be hidden because of the initial settings to only show results for the methods with source (i.e. hide methods without source - see combo box options on main UI). Switching to seeing all methods will help answer this question.
Hope that helps,
Stephen
That method is in the same source files as some of the other methods that are shown. The pdb files are in the same directory as the exe. I tried profiling through visual studio and by launching it manually and locating the directory myself with the same result.
I am sure there is a simple explanation but I cannot figure it out.
Thanks.
Thanks.
there are a few possible reasons from what I can gather:
1. We show CPU time by default in ANTS 4 (time only spent executing). ANTS 2 only recorded Wall Clock time so methods which appeared 'slow' due to time spent waiting would be shown. You can easily switch to Wall Clock time in V4 as we record both and you can switch between the two. You might find this article of interest:
http://www.simple-talk.com/dotnet/.net- ... -to-block/
2. We hide insignificant methods by default. If the waiting time isn't included then a 'slow' method might not actually appear much at all. You can uncheck this option from the UI as well.
3. If you are selecting regions on the timeline, if you don't have the right region selected (we can't be 100% accurate here due to Windows not returning perf counters in a timely fashion) so i would try not having anything selected initially to rule out every other possibility.
We removed the Summary. Sorting by the time columns in the All Methods grid will provide you with the worst performing methods with relative ease. We don't have a line level equivalent I'm afraid.
Hope that helps,
Stephen
Thanks for your help.
Hope you like what we have done with the rest of the tool.
Stephen