|
PostgreSQL Source Code git master
|

Go to the source code of this file.
Macros | |
| #define | LOCKSTAT_ACC(fld) (lck_shstats->fld += PendingLockStats.stats[i].fld) |
Functions | |
| PgStat_Lock * | pgstat_fetch_stat_lock (void) |
| void | pgstat_lock_flush (bool nowait) |
| bool | pgstat_lock_flush_cb (bool nowait) |
| void | pgstat_lock_init_shmem_cb (void *stats) |
| void | pgstat_lock_reset_all_cb (TimestampTz ts) |
| void | pgstat_lock_snapshot_cb (void) |
| void | pgstat_count_lock_fastpath_exceeded (uint8 locktag_type) |
| void | pgstat_count_lock_waits (uint8 locktag_type, long msecs) |
Variables | |
| static PgStat_PendingLock | PendingLockStats |
| static bool | have_lockstats = false |
Definition at line 156 of file pgstat_lock.c.
References Assert, PgStat_LockEntry::fastpath_exceeded, have_lockstats, LOCKTAG_LAST_TYPE, PendingLockStats, pgstat_report_fixed, and PgStat_PendingLock::stats.
Referenced by LockAcquireExtended().
Definition at line 171 of file pgstat_lock.c.
References Assert, fb(), have_lockstats, LOCKTAG_LAST_TYPE, PendingLockStats, pgstat_report_fixed, PgStat_PendingLock::stats, PgStat_LockEntry::wait_time, and PgStat_LockEntry::waits.
Referenced by ProcSleep().
| PgStat_Lock * pgstat_fetch_stat_lock | ( | void | ) |
Definition at line 26 of file pgstat_lock.c.
References PgStat_Snapshot::lock, PGSTAT_KIND_LOCK, pgstat_snapshot_fixed(), pgStatLocal, and PgStat_LocalState::snapshot.
Referenced by pg_stat_get_lock().
Definition at line 51 of file pgstat_lock.c.
References fb(), have_lockstats, i, PgStat_ShmemControl::lock, PgStatShared_Lock::locks, LOCKSTAT_ACC, LOCKTAG_LAST_TYPE, LW_EXCLUSIVE, LWLockAcquire(), LWLockConditionalAcquire(), LWLockRelease(), PendingLockStats, pgStatLocal, PgStat_LocalState::shmem, PgStat_Lock::stats, and PgStatShared_Lock::stats.
Referenced by pgstat_lock_flush().
Definition at line 93 of file pgstat_lock.c.
References fb(), i, LOCKTAG_LAST_TYPE, and LWLockInitialize().
| void pgstat_lock_reset_all_cb | ( | TimestampTz | ts | ) |
Definition at line 102 of file pgstat_lock.c.
References fb(), i, PgStat_ShmemControl::lock, PgStatShared_Lock::locks, LOCKTAG_LAST_TYPE, LW_EXCLUSIVE, LWLockAcquire(), LWLockRelease(), pgStatLocal, PgStat_LocalState::shmem, PgStat_Lock::stat_reset_timestamp, PgStat_Lock::stats, and PgStatShared_Lock::stats.
Definition at line 124 of file pgstat_lock.c.
References fb(), i, PgStat_ShmemControl::lock, PgStat_Snapshot::lock, PgStatShared_Lock::locks, LOCKTAG_LAST_TYPE, LW_SHARED, LWLockAcquire(), LWLockRelease(), pgStatLocal, PgStat_LocalState::shmem, PgStat_LocalState::snapshot, PgStat_Lock::stat_reset_timestamp, PgStat_Lock::stats, and PgStatShared_Lock::stats.
Definition at line 23 of file pgstat_lock.c.
Referenced by pgstat_count_lock_fastpath_exceeded(), pgstat_count_lock_waits(), and pgstat_lock_flush_cb().
|
static |
Definition at line 22 of file pgstat_lock.c.
Referenced by pgstat_count_lock_fastpath_exceeded(), pgstat_count_lock_waits(), and pgstat_lock_flush_cb().