Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
pg_rusage.h33 linesDownload Raw Back to utils
1/*-------------------------------------------------------------------------2 *3 * pg_rusage.h4 *	  header file for resource usage measurement support routines5 *6 *7 * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group8 * Portions Copyright (c) 1994, Regents of the University of California9 *10 * src/include/utils/pg_rusage.h11 *12 *-------------------------------------------------------------------------13 */14#ifndef PG_RUSAGE_H15#define PG_RUSAGE_H16 17#include <sys/resource.h>18#include <sys/time.h>19 20 21/* State structure for pg_rusage_init/pg_rusage_show */22typedef struct PGRUsage23{24	struct timeval tv;25	struct rusage ru;26} PGRUsage;27 28 29extern void pg_rusage_init(PGRUsage *ru0);30extern const char *pg_rusage_show(const PGRUsage *ru0);31 32#endif							/* PG_RUSAGE_H */33 
codekingpro/portable-devtools · Team Ai