Improve the naming in wal_sync_method code.
[pgsql.git] / src / include / utils / pg_rusage.h
blob219ee678856ce26234e06ee9e28edb38cc734cd3
1 /*-------------------------------------------------------------------------
3 * pg_rusage.h
4 * header file for resource usage measurement support routines
7 * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group
8 * Portions Copyright (c) 1994, Regents of the University of California
10 * src/include/utils/pg_rusage.h
12 *-------------------------------------------------------------------------
14 #ifndef PG_RUSAGE_H
15 #define PG_RUSAGE_H
17 #include <sys/resource.h>
18 #include <sys/time.h>
21 /* State structure for pg_rusage_init/pg_rusage_show */
22 typedef struct PGRUsage
24 struct timeval tv;
25 struct rusage ru;
26 } PGRUsage;
29 extern void pg_rusage_init(PGRUsage *ru0);
30 extern const char *pg_rusage_show(const PGRUsage *ru0);
32 #endif /* PG_RUSAGE_H */