| Author |
Message |
ianormy
Joined: 25 Nov 2009 Posts: 2
|
Posted: Wed Nov 25, 2009 5:25 pm Post subject: Compare Profiler Results |
|
|
Is it possible to compare 2 profile results together? I know the profiling tools that come with the more expensive versions of Visual Studio allow you to compare 2 profile results. This is really handy to see if a speed improvement you have done really does improve the performance.
Ian |
|
| Back to top |
|
 |
StephenC
Joined: 15 Oct 2007 Posts: 314 Location: Cambridge
|
Posted: Wed Nov 25, 2009 5:38 pm Post subject: |
|
|
This is something we get asked for on a reasonably regular basis although there are very good reasons for it not being implemented - results can change based on what the CPU was also doing at that point in time, different stack traces can't be compared easily if they have changed a great deal, comparing various time regions is difficult. There are many other reasons too which i'll not go into.
You can export the All Methods grid for each run and and compare the results that way. We will be improving the exporting in the next version but for now if you:
- Select a row in the methods grid
- Ctrl + A
- Ctrl + C
Then paste into the Excel file. You can compare various methods from this grid. Alternating between CPU time and Wall-Clock time can also help.
There is one other possibility by implementing our UserEvents.dll
You can place this in your code to mark/annotate events on the timeline giving you start and end times that you can compare.
http://www.red-gate.com/supportcenter/Content.aspx?p=ANTS%20Profiler&c=knowledgebase\ANTS_Profiler\KB200811000319.htm
Perhaps you could tell me what would be most useful for you?
Stephen |
|
| Back to top |
|
 |
ianormy
Joined: 25 Nov 2009 Posts: 2
|
Posted: Wed Nov 25, 2009 6:03 pm Post subject: |
|
|
Thanks Stephen for your prompt reply. Lots of people ask for it because its a really useful feature
The main use for it is that its saves a lot of time to be able to just load up 2 files and have up and down arrows showing improvements. The more of your own time you have to spend to do the comparison, the less profitable it becomes. I realise that the comparison may be difficult to implement, but even something that gives a rough idea really helps.
Ah well! Thanks again,
Ian |
|
| Back to top |
|
 |
StephenC
Joined: 15 Oct 2007 Posts: 314 Location: Cambridge
|
Posted: Wed Nov 25, 2009 6:18 pm Post subject: |
|
|
On the face of it - it does look like it would be useful but the problems with it generally outweigh any positives (or at least that's the view at the moment but we are an open bunch so i wouldn't rule it out).
I'd be really interested to know - what sort of time comparison granularity are you talking about?
Going from 10mins to 2mins for example is a pretty obvious change. Shaving off a couple of seconds though probably isn't generally particularly useful to know.
You can open a second instance of ANTS and load the other file in and check the timelines for both although again i have to hold up my hands and admit it's not how we would implement it if we ever decided to.
Stephen |
|
| Back to top |
|
 |
Brian Donahue
Joined: 23 Aug 2004 Posts: 6346 Location: Red Gate Software
|
Posted: Wed Nov 25, 2009 6:31 pm Post subject: |
|
|
Hi Ian,
You may also be interested in the Performance Profiler results comparison tool.
ftp://support.red-gate.com/patches/ants_profiler/ANTSXMLCompare.zip
If you copy the all methods grid from each profiling session to the clipboard, it will create XML files with the contents of the grid and show the deltas between the same method in each session. You could, for instance, sort on the method with the greatest time improvement, etc. _________________ Brian Donahue
Technical Support
Red Gate Software Ltd.
44 (0)870 160 0037 ext 8521
US and CAN 1-866-RED GATE ext 8521 |
|
| 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