Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014 #ifndef PG_RUSAGE_H
00015 #define PG_RUSAGE_H
00016
00017 #include <sys/time.h>
00018
00019 #ifdef HAVE_SYS_RESOURCE_H
00020 #include <sys/resource.h>
00021 #else
00022 #include "rusagestub.h"
00023 #endif
00024
00025
00026
00027 typedef struct PGRUsage
00028 {
00029 struct timeval tv;
00030 struct rusage ru;
00031 } PGRUsage;
00032
00033
00034 extern void pg_rusage_init(PGRUsage *ru0);
00035 extern const char *pg_rusage_show(const PGRUsage *ru0);
00036
00037 #endif