1 /*-------------------------------------------------------------------------
4 * header file for resource usage measurement support routines
7 * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group
8 * Portions Copyright (c) 1994, Regents of the University of California
10 * src/include/utils/pg_rusage.h
12 *-------------------------------------------------------------------------
19 #ifdef HAVE_SYS_RESOURCE_H
20 #include <sys/resource.h>
22 #include "rusagestub.h"
26 /* State structure for pg_rusage_init/pg_rusage_show */
27 typedef struct PGRUsage
34 extern void pg_rusage_init(PGRUsage
*ru0
);
35 extern const char *pg_rusage_show(const PGRUsage
*ru0
);
37 #endif /* PG_RUSAGE_H */