开发者

Are there any concurrency debugging tools for C#.NET in VS2010

On the project I am working on at the moment we have an unknown number of flickering tests which fail at varying rates (anywhere from every-other run to once every 5000 runs) which has led us to believe we have some serious Heisenbugs to resolve. Most of the time including trace statements in the code change the timing enough to eliminate these errors, or at least make them occur less often, but obviously this is not a valid bug fix.

We are wondering if there are开发者_如何学Go any tools similair to CHESS (http://research.microsoft.com/en-us/projects/chess/download.aspx) that work in/with Visual Studio 2010 to stress test applications and detect potential race conditions and deadlocks?


Within Visual Studio 2010 (not sure which editions exactly) you can create a new profiling session with the "Concurrency" option. This should detect the deadlocks you're looking for. You can then profile a unit test to automate your many runs.

Couldn't find many images of the results but here's an example

Are there any concurrency debugging tools for C#.NET in VS2010


(source: microsoft.com)


Another tool is from Microsoft Research only, you can download it from Codeplex - chesstool.codeplex.com. It supports .Net 4.0 libraries, next version of Chess, but I don't know you are able to use it.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜