| Author |
Message |
flipdoubt
Joined: 11 Aug 2009 Posts: 10
|
Posted: Sun Aug 23, 2009 7:43 pm Post subject: What does "Suggest methods to optimize" do? |
|
|
| 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? |
|
| Back to top |
|
 |
StephenC
Joined: 15 Oct 2007 Posts: 314 Location: Cambridge
|
Posted: Sun Aug 23, 2009 9:11 pm Post subject: |
|
|
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 |
|
| Back to top |
|
 |
flipdoubt
Joined: 11 Aug 2009 Posts: 10
|
Posted: Mon Aug 24, 2009 2:28 am Post subject: |
|
|
| 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? |
|
| Back to top |
|
 |
StephenC
Joined: 15 Oct 2007 Posts: 314 Location: Cambridge
|
Posted: Mon Aug 24, 2009 9:46 am Post subject: |
|
|
Hi,
it's a red asterisk next to the method name - like this:
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 |
|
| Back to top |
|
 |
flipdoubt
Joined: 11 Aug 2009 Posts: 10
|
Posted: Mon Aug 24, 2009 12:31 pm Post subject: |
|
|
| Thanks! |
|
| 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