Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to debug high CPU usage?

Tags:

c#-3.0

What tools to use to find out what cause a high CPU usage in .net application?

WPF / C# 3.0 / .net 3.5

like image 435
Mark Avatar asked Aug 19 '10 08:08

Mark


1 Answers

Apply a profiler to understand where the CPU is being used: what parts of your code are "hot". You can then review the design of those parts of the code.

Note, the high CPU usage could be completely reasonable.

like image 198
Richard Avatar answered Dec 05 '22 22:12

Richard