PostgreSQL Source Code
git master
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
Functions
Variables
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
Data Fields
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
f
h
i
n
o
p
r
s
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
Files
File List
Globals
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
•
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
pg_rusage.h
Go to the documentation of this file.
1
/*-------------------------------------------------------------------------
2
*
3
* pg_rusage.h
4
* header file for resource usage measurement support routines
5
*
6
*
7
* Portions Copyright (c) 1996-2025, PostgreSQL Global Development Group
8
* Portions Copyright (c) 1994, Regents of the University of California
9
*
10
* src/include/utils/pg_rusage.h
11
*
12
*-------------------------------------------------------------------------
13
*/
14
#ifndef PG_RUSAGE_H
15
#define PG_RUSAGE_H
16
17
#include <
sys/resource.h
>
18
#include <
sys/time.h
>
19
20
21
/* State structure for pg_rusage_init/pg_rusage_show */
22
typedef
struct
PGRUsage
23
{
24
struct
timeval
tv
;
25
struct
rusage
ru
;
26
}
PGRUsage
;
27
28
29
extern
void
pg_rusage_init
(
PGRUsage
*ru0);
30
extern
const
char
*
pg_rusage_show
(
const
PGRUsage
*ru0);
31
32
#endif
/* PG_RUSAGE_H */
pg_rusage_show
const char * pg_rusage_show(const PGRUsage *ru0)
Definition:
pg_rusage.c:40
PGRUsage
struct PGRUsage PGRUsage
pg_rusage_init
void pg_rusage_init(PGRUsage *ru0)
Definition:
pg_rusage.c:27
resource.h
PGRUsage
Definition:
pg_rusage.h:23
PGRUsage::ru
struct rusage ru
Definition:
pg_rusage.h:25
PGRUsage::tv
struct timeval tv
Definition:
pg_rusage.h:24
rusage
Definition:
resource.h:13
time.h
src
include
utils
pg_rusage.h
Generated on Mon Jan 20 2025 06:13:28 for PostgreSQL Source Code by
1.9.4