Thread Blocked

My app has been very slow and so I purchased ANTS 4. It tells me for 90+ percent of the time the thread is blocked but it doesn't tell me how/why (or if it does I don't know how to read it).

Any ideas how to diagnose this problem?

Comments

  • I'm not sure I totally understand your question. Firstly, ensure that you have ANTS set to 'wall clock time' rather than 'CPU time'.

    Presumably in the call tree it looks something like this:
    Main()
       - WaitForHTTPResponse()
            - Thread Blocked
    
    So the culprit is WaitForHTTPResponse()

    ANTS can tell you how a thread is blocked. By looking at the call tree, you can see which methods take a long time (which is presumably due to calling 'Thread blocked').

    ANTS can't really tell you why calling WaitForHTTPResponse blocks for so long. But by looking at the call tree, methods grid, and source code view you can see where the time is being spent.

    I'm not sure if this answers your question!
    Jason Crease
    Red Gate Software
Sign In or Register to comment.