Add some optional code (conditionally compiled under #ifdef LWLOCK_STATS)

Tom Lane <tgl@sss.pgh.pa.us>

Commit: b5498a26deba8d3112dbf4da5375ccd9db4ff375
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2006-04-21T16:45:12Z
Releases: 8.2.0
Add some optional code (conditionally compiled under #ifdef LWLOCK_STATS)
to track the number of LWLock acquisitions and the number of times we
block waiting for an LWLock, on a per-process basis.  After having needed
this twice in the past few months, seems like it should go into CVS.

Files

PathChange+/−
src/backend/storage/lmgr/lwlock.c modified +58 −1