measure time .net thread spent waiting for IO -
this continuation how time spent in .net thread?
i know how can measure cpu time of thread (http://www.codeproject.com/kb/dotnet/executionstopwatch.aspx), don't know how measure io wait of thread. thread waits io, gets interrupted. while other threads executing, io operation of our thread long over, return our thread, stop stopwatch, shows incorrectly large time. ideas on this?
do need done in code specifically? if use windbg can use !runaway cpu time of each thread both kernel , user mode http://blogs.msdn.com/b/debuggingtoolbox/archive/2009/08/20/special-command-cpu-time-for-each-thread-with-runaway.aspx.
alternatively can use processexplorer. if double click on process can information on thread tab. http://technet.microsoft.com/en-us/sysinternals/bb896653.aspx.
alternatively thread on c++ how cpu usage per thread on windows (win32) has information on win32 api calls.
Comments
Post a Comment