English 中文(简体)
What to look for in performance analyzer in VS 2008
原标题:

What to look for in performance analyzer in VS 2008

I am using VS Team system and got the performance wizard and reports going.

What benchmarks/process do I use?

There is a lot of stuff in the reports. Where do I go to find ways to improve my app?

Edit: For example. If I run the wizard, change my application to something I think is better based on looking at the code. And run the wizard again. How can I validate the improvement?

最佳回答

An msdn tutorial on using the profiler: http://msdn.microsoft.com/en-us/magazine/cc337887.aspx Also you would probably be interested in walking through some of the posts here: http://blogs.msdn.com/profiler/.

The basic idea is to have a run of your scenario that you want to profile. You will have to decide whether to use sampling or instrumentation first.

By default using sampling first to see if you have some obvious bottleneck makes sense. Just pick the functions with the highest samples count and the highest call count and check what you can do to reduce that.

If you want a finer analysis you should switch to instrumentation. The basic idea here is to first look for the functions with the highest inclusive time as %. Check why these take so long and how you can reduce them. Then also look at the functions having the highest exclusive time and see how you can reduce that also.

Hope this helps.

问题回答

Here is a nice little tutorial on how to use the reports and what to look for.

It depends on your app. You need to try to find the bottle neck.

Start by looking at the time taken and see where the most time is being used.





相关问题
What to look for in performance analyzer in VS 2008

What to look for in performance analyzer in VS 2008 I am using VS Team system and got the performance wizard and reports going. What benchmarks/process do I use? There is a lot of stuff in the ...

SQL Table Size And Query Performance

We have a number of items coming in from a web service; each item containing an unknown number of properties. We are storing them in a database with the following Schema. Items - ItemID - ...

How to speed up Visual Studio 2008? Add more resources?

I m using Visual Studio 2008 (with the latest service pack) I also have ReSharper 4.5 installed. ReSharper Code analysis/ scan is turned off. OS: Windows 7 Enterprise Edition It takes me a long time ...

Manually implementing high performance algorithms in .NET

As a learning experience I recently tried implementing Quicksort with 3 way partitioning in C#. Apart from needing to add an extra range check on the left/right variables before the recursive call, ...

How do I profile `paster serve` s startup time?

Python s paster serve app.ini is taking longer than I would like to be ready for the first request. I know how to profile requests with middleware, but how do I profile the initialization time? I ...

热门标签