Reputation: 5252
I'm debugging a multi-thread delphi app. We are having a trouble that, after connect to the server, the client app is getting 100% of the CPU. Is there a way for me to debug and know shich thread is dois that?
Upvotes: 4
Views: 906
Reputation: 81429
Process Explorer will give you usage details down to the thread level for any process.
The TID ought to be enough to nail down your CPU hogging thread.
Upvotes: 8
Reputation: 25834
As Paul Sasik suggests, Process Explorer is probably what you want to do. If your debugging strategy involves monitoring code that is in your application itself, use GetThreadTimes
.
Upvotes: 3