Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

howto measure contention rate of one lock

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.

like image 809
Martin Moser Avatar asked Nov 04 '22 04:11

Martin Moser


1 Answers

ETW events may already provide information on what you need. See ETW overview and Lock contention.

like image 124
Alexei Levenkov Avatar answered Nov 15 '22 06:11

Alexei Levenkov