#195- Display lock(xxx) time

http://www.intellij.net/tracker/netprofiler/viewSCR?publicId=195
For a method such as :

void MyMethod()
{
AnotherMethod()
lock(myObject)
{
YetAnotherMethod();
}
}

Time is properly displayed for method calls (AnotherMethod,MyMethod,YetAnotherMethod) but the lock does not appear (as it is a statement, not a method call).

It would be very useful to have lock() displayed (just like Monitor.Enter would be I suppose), to profile deadlock scenarios.

3 comments

We're going to find a way to measure functions like Monitor.Enter in future versions, but they will be displayed by their names ("Monitor.Enter") and not as "lock"

0

http://www.intellij.net/tracker/netprofiler/viewSCR?publicId=195

State of this request was changed from "Submitted" to "Open"

Priority: Normal
Planned for version: ]]>

0

Monitor.Enter is far good enough.

By future versions do you mean short term (next builds?) or long term (v2.0 ?)

0

Please sign in to leave a comment.