How to debug high CPU usage?

What tools can be used to determine what can lead to high CPU utilization in a .net application?

WPF / C # 3.0 / .net 3.5

+5
source share
4 answers

Use a profiler to understand where the CPU is used: which parts of your code are hot. Then you can view the design of these pieces of code.

Note. High CPU utilization can be quite reasonable.

+9
source

First you need to find out where your application spends most of its CPU time - I suggest you run a performance profiler, for example:

, . , . .

+4

I agree, you need a profiler. Visual Studio 2010 Premium or Ultimate Edition has a built-in profiler. I have not used it, but it should be useful as an alternative to DotTrace or ANTS.

http://msdn.microsoft.com/en-us/library/z9z62c29.aspx

+2
source

VS2013 already comes with a very good built-in profiler

-1
source

All Articles