I'm currently having problems with the contention rate of a partical application (.net 4.0, c#) I'm maintaining. What I would like to do is to write a PerfCounter if one partical lock couldn't be aquired. Right now I just have the overall counter, provided by .net, but I would like to have a PerfCounter for some selected locks.
Profiler etc. is not a option for me, as this is a high performing productive environment that I cannot touch, I can record perfcounters.