What does "Suggest methods to optimize" do?

Code profiling for .NET Developers

Moderators: StephenC, Alex.Davies, AndrewH

What does "Suggest methods to optimize" do?

Postby flipdoubt » Sun Aug 23, 2009 7:43 pm

The Tools menu has a checked menu item "Suggest methods to optimize" that I am curious about. When I search the online docs, I don't get any hits except those in the forums. Where should I go for an explanation as to what this feature does? Where do I see the recommendations? What behavior should change when I check or uncheck the menu item?
flipdoubt
 
Posts: 10
Joined: Tue Aug 11, 2009 3:32 pm

Postby StephenC » Sun Aug 23, 2009 9:11 pm

Hi,

the 'Suggest methods to optimize' option was added as a potential helper in the Performance Profiler although it's not meant as a metric that should be relied upon if you do not agree with the suggestions.

I must stress that the suggestion mechanism is based on a couple of loose rules and these simple rules of thumb (a combination of time spent in self and hit count if my memory is correct), aren't always what the programmer of the application in question might consider a method that needs to be optimized. We can't know that and they are only suggestions after all. :)

Any suggested methods would be shown in the tree view for example with a red asterisk next to the method name.

Stephen
Last edited by StephenC on Mon Aug 24, 2009 9:52 am, edited 1 time in total.
StephenC
 
Posts: 306
Joined: Mon Oct 15, 2007 9:18 am
Location: Cambridge

Postby flipdoubt » Mon Aug 24, 2009 2:28 am

You don't mean the red rectangle with the word "HOT" in it, do you? Because I don't see any red dots. Is there any documentation on this menu item that contains a screenshot?
flipdoubt
 
Posts: 10
Joined: Tue Aug 11, 2009 3:32 pm

Postby StephenC » Mon Aug 24, 2009 9:46 am

Hi,

it's a red asterisk next to the method name - like this:

Image

If you aren't seeing any it's just because none of the methods match the rule of thumb used to suggest a method.

The hot path shows the most expensive stack trace.

Stephen
StephenC
 
Posts: 306
Joined: Mon Oct 15, 2007 9:18 am
Location: Cambridge

Postby flipdoubt » Mon Aug 24, 2009 12:31 pm

Thanks!
flipdoubt
 
Posts: 10
Joined: Tue Aug 11, 2009 3:32 pm


Return to ANTS Performance Profiler 5

Who is online

Users browsing this forum: No registered users and 1 guest