Thread: pgsql: When LWLOCK_STATS is defined, count spindelays.

pgsql: When LWLOCK_STATS is defined, count spindelays.

From
Robert Haas
Date:
When LWLOCK_STATS is defined, count spindelays.

When LWLOCK_STATS is *not* defined, the only change is that
SpinLockAcquire now returns the number of delays.

Patch by me, review by Jeff Janes.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/b79ab00144e64217d418fde884bca8ea58fbd4a4

Modified Files
--------------
src/backend/storage/lmgr/lwlock.c |   12 +++++++++---
src/backend/storage/lmgr/s_lock.c |    3 ++-
src/include/storage/s_lock.h      |   10 ++++------
3 files changed, 15 insertions(+), 10 deletions(-)