Reputation: 8404
I recently installed (the eval of) Visual Studio 2008 TS in order to be able to get some profiling of an application done. Now I only find out how little I know about (real world) profiling, when applications are more complex than "Hello World".
My main problem is that the integrated debugger seems to add the time spent by all threads, so I get several times the total runtime, also certain functions (like sleep) show up several times, I assume since they are called by several threads.
Now my problem is: how can I make this easier to examine? There is only one thread I am interested in (the main one doing all the work), the others are simply waiting for certain stuff and are totally limited by the running time of my main thread. (They are in the same modules though and sometimes call the same functions.)
Is there any way to setup the profiling? Any way to handle the results in order to make them more meaningful for my scenario? Any other solution than VS 2008 (like 2010 or an external profiler)?
I am using instrumentation right now (gave me better results than sampling in my view) with C# under .net 3.5.
Upvotes: 4
Views: 1077
Reputation: 66
The ANTS Performance Profiler from Red Gate can filter profiling results by thread.
The documentation on Working with the call tree (specifically, the section "Changing the call-tree display options") shows a screenshot of where you can access the filter.
Upvotes: 5