PostgreSQL Source Code git master
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
injection_stats.h
Go to the documentation of this file.
1/*--------------------------------------------------------------------------
2 *
3 * injection_stats.h
4 * Definitions for statistics of injection points.
5 *
6 * Portions Copyright (c) 1996-2025, PostgreSQL Global Development Group
7 * Portions Copyright (c) 1994, Regents of the University of California
8 *
9 * IDENTIFICATION
10 * src/test/modules/injection_points/injection_stats.h
11 *
12 * -------------------------------------------------------------------------
13 */
14
15#ifndef INJECTION_STATS
16#define INJECTION_STATS
17
18/* GUC variable */
19extern bool inj_stats_enabled;
20
21/* injection_stats.c */
22extern void pgstat_register_inj(void);
23extern void pgstat_create_inj(const char *name);
24extern void pgstat_drop_inj(const char *name);
25extern void pgstat_report_inj(const char *name);
26
27/* injection_stats_fixed.c */
28extern void pgstat_register_inj_fixed(void);
29extern void pgstat_report_inj_fixed(uint32 numattach,
30 uint32 numdetach,
31 uint32 numrun,
32 uint32 numcached,
33 uint32 numloaded);
34
35#endif
uint32_t uint32
Definition: c.h:488
void pgstat_report_inj(const char *name)
void pgstat_register_inj(void)
void pgstat_register_inj_fixed(void)
void pgstat_create_inj(const char *name)
void pgstat_drop_inj(const char *name)
bool inj_stats_enabled
void pgstat_report_inj_fixed(uint32 numattach, uint32 numdetach, uint32 numrun, uint32 numcached, uint32 numloaded)
const char * name