| Author |
Message |
rgelb
Joined: 25 Sep 2008 Posts: 26
|
Posted: Fri Feb 05, 2010 6:47 pm Post subject: How do I profile a specific method? |
|
|
| It does not even show up in the tree/list, but it is really important to me. Using 5.2.x |
|
| Back to top |
|
 |
StephenC
Joined: 15 Oct 2007 Posts: 314 Location: Cambridge
|
Posted: Fri Feb 05, 2010 7:37 pm Post subject: |
|
|
Hi,
The first thing to make sure of is that you have the right profiling mode selected.
Secondly, if ANTS can't find the pdb files then the method(s) will be counted as methods without source code and therefore not show up with the default filter of 'only showing methods with source'. Make sure that all the files are in the correct place.
There is a checkbox with 'Hide Insignificant methods' which you can uncheck to show any methods that took less than 1% of time with children.
Finally, there are options in Tools > Options that allow you to adjust for inlining of functions, simplifying stack traces and ignoring trivial functions. You can adjust these but they may have a significant impact on the overhead of the profiler.
Stephen |
|
| Back to top |
|
 |
rgelb
Joined: 25 Sep 2008 Posts: 26
|
Posted: Fri Feb 05, 2010 8:54 pm Post subject: |
|
|
Stephen,
Basically, I am profiling a WinForms app. The solution has a 5 projects in it (one EXE, the rest class libraries). I start the profiler from the ANTS 5 Toolbar in VS2008.
The method I am trying to profile is an CellChanged event on a 3rd party control. The event is in my code, I can step through it and I can plainly see that it's where the most damage is being done.
However, in the ANTS 5 profiler, I don't see this event method at all. The only thing I do see is a method that is kicked off by the function (on a separate thread though).
I did try playing around with the options you mentioned, all to no avail. |
|
| Back to top |
|
 |
StephenC
Joined: 15 Oct 2007 Posts: 314 Location: Cambridge
|
Posted: Mon Feb 08, 2010 12:21 pm Post subject: |
|
|
Hi Frank,
which version of the Profiler do you have?
Is it the Standard edition or the Pro edition?
Stephen |
|
| Back to top |
|
 |
rgelb
Joined: 25 Sep 2008 Posts: 26
|
Posted: Mon Feb 08, 2010 6:20 pm Post subject: |
|
|
| Professional. Version 5.2.0.26 |
|
| Back to top |
|
 |
StephenC
Joined: 15 Oct 2007 Posts: 314 Location: Cambridge
|
|
| Back to top |
|
 |
|
|
All times are GMT + 1 Hour
|
| Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group