How can I track calls/stack onthe UI thread?
I have a hefty little Winforms app written in C#. For a moment, lets assume that the box running my app has a large number of cores, so that for me, the most precious resource in the app is the use of the UI thread. In light of that, I'd like to be able to track, for performance tuning purposes, all of the calls that are being made on the UI thread. I'd like to make sure I'm not accidentally doing work on the UI thread that could be easily moved to a background thread.
My best gu开发者_如何学编程ess so far would be using the Process Explorer and/or Process Monitor from the Microsoft SysInternals group.
Year(s) ago I used Managed Spy with success.
Have a look on it.
精彩评论