aboutsummaryrefslogtreecommitdiff
path: root/src/test/modules/injection_points/injection_stats.h
blob: ba310c52c7f0c02e1b97a27241a004d133a29288 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*--------------------------------------------------------------------------
 *
 * injection_stats.h
 *		Definitions for statistics of injection points.
 *
 * Portions Copyright (c) 1996-2025, PostgreSQL Global Development Group
 * Portions Copyright (c) 1994, Regents of the University of California
 *
 * IDENTIFICATION
 *		src/test/modules/injection_points/injection_stats.h
 *
 * -------------------------------------------------------------------------
 */

#ifndef INJECTION_STATS
#define INJECTION_STATS

/* GUC variable */
extern bool inj_stats_enabled;

/* injection_stats.c */
extern void pgstat_register_inj(void);
extern void pgstat_create_inj(const char *name);
extern void pgstat_drop_inj(const char *name);
extern void pgstat_report_inj(const char *name);

/* injection_stats_fixed.c */
extern void pgstat_register_inj_fixed(void);
extern void pgstat_report_inj_fixed(uint32 numattach,
									uint32 numdetach,
									uint32 numrun,
									uint32 numcached,
									uint32 numloaded);

#endif