183 #define SLRU_ACC(fld) sharedent->fld += pendingent->fld
227 sizeof(stats_shmem->
stats));
TimestampTz GetCurrentTimestamp(void)
#define Assert(condition)
#define MemSet(start, val, len)
bool IsPostmasterEnvironment
bool LWLockAcquire(LWLock *lock, LWLockMode mode)
void LWLockRelease(LWLock *lock)
void LWLockInitialize(LWLock *lock, int tranche_id)
bool LWLockConditionalAcquire(LWLock *lock, LWLockMode mode)
static int64 blocks_written
void pgstat_snapshot_fixed(PgStat_Kind kind)
PgStat_LocalState pgStatLocal
static const char *const slru_names[]
#define pgstat_assert_is_up()
#define SLRU_NUM_ELEMENTS
static bool have_slrustats
void pgstat_slru_snapshot_cb(void)
void pgstat_count_slru_page_exists(int slru_idx)
void pgstat_count_slru_page_read(int slru_idx)
static PgStat_SLRUStats pending_SLRUStats[SLRU_NUM_ELEMENTS]
int pgstat_get_slru_index(const char *name)
void pgstat_count_slru_page_hit(int slru_idx)
void pgstat_count_slru_page_zeroed(int slru_idx)
void pgstat_count_slru_truncate(int slru_idx)
bool pgstat_slru_flush_cb(bool nowait)
static void pgstat_reset_slru_counter_internal(int index, TimestampTz ts)
void pgstat_count_slru_page_written(int slru_idx)
void pgstat_reset_slru(const char *name)
PgStat_SLRUStats * pgstat_fetch_slru(void)
const char * pgstat_get_slru_name(int slru_idx)
void pgstat_slru_reset_all_cb(TimestampTz ts)
void pgstat_count_slru_flush(int slru_idx)
void pgstat_slru_init_shmem_cb(void *stats)
bool pgstat_slru_have_pending_cb(void)
static PgStat_SLRUStats * get_slru_entry(int slru_idx)
PgStat_SLRUStats stats[SLRU_NUM_ELEMENTS]
PgStat_ShmemControl * shmem
PgStat_Counter blocks_read
PgStat_Counter blocks_exists
TimestampTz stat_reset_timestamp
PgStat_Counter blocks_zeroed
PgStat_Counter blocks_written
PgStat_Counter blocks_hit
PgStat_SLRUStats slru[SLRU_NUM_ELEMENTS]