I've added ICQ# library (it's open source) to my application. But if I connect to ICQ server though it, it will increase usage of CPU (up to 30%). So something in ICQ# library is using CPU so much. But I don't know how to determinate what is it and reduce the usage of CPU.
Determining source of high processor usage
145 Views Asked by sczdavos At
3
There are 3 best solutions below
0
On
The very simplest approach is this:
- Run your program in the debugger.
- And break into the debugger at some point.
- Look at the call stack wherever you are
- repeat steps 2-3
Doing this just two or three times gives you a very good idea of where most of your execution time is being spent. If most of the execution time is spent in one function, then that function will be on the call stack nearly every time you break into the debugger.
If it's open source and you've added the code to your project; run it with a profiler attached.