lock aka Monitor records contention prior to beginning its spin->wait cycle; however if contention happens in SpinLock and it has to spin, that isn't surfaced via this counter.
Related but different, I think contention handled via a SpinWait isn't surfaced this way (e.g. ConcurrentQueue), though it's not a lock perse; but the contention figure gives an incomplete picture.
So they be added?
/cc @kouvel @stephentoub
lockakaMonitorrecords contention prior to beginning its spin->wait cycle; however if contention happens inSpinLockand it has to spin, that isn't surfaced via this counter.Related but different, I think contention handled via a
SpinWaitisn't surfaced this way (e.g.ConcurrentQueue), though it's not alockperse; but the contention figure gives an incomplete picture.So they be added?
/cc @kouvel @stephentoub