My Project
Loading...
Searching...
No Matches
omalloc
omStats.h
Go to the documentation of this file.
1
/*******************************************************************
2
* File: omStats.h
3
* Purpose: declaration of statistics related stuff
4
* Author: obachman (Olaf Bachmann)
5
* Created: 11/99
6
*******************************************************************/
7
#ifndef OM_STATS_H
8
#define OM_STATS_H
9
10
struct
omInfo_s
11
{
12
long
MaxBytesSystem
;
/* set in omUpdateInfo(), is more accurate with malloc support */
13
long
CurrentBytesSystem
;
/* set in omUpdateInfo(), is more accurate with malloc support */
14
long
MaxBytesSbrk
;
/* always up-to-date, not very accurate, needs omInintInfo() */
15
long
CurrentBytesSbrk
;
/* set in omUpdateInfo(), needs omInintInfo() */
16
long
MaxBytesMmap
;
/* set in omUpdateInfo(), not very accurate */
17
long
CurrentBytesMmap
;
/* set in omUpdateInfo(), not very accurate */
18
long
UsedBytes
;
/* set in omUpdateInfo() */
19
long
AvailBytes
;
/* set in omUpdateInfo() */
20
long
UsedBytesMalloc
;
/* set in omUpdateInfo(), needs malloc support */
21
long
InternalUsedBytesMalloc
;
22
long
AvailBytesMalloc
;
/* set in omUpdateInfo(), needs malloc support */
23
long
MaxBytesFromMalloc
;
/* always kept up-to-date */
24
long
CurrentBytesFromMalloc
;
/* always kept up-to-date */
25
long
MaxBytesFromValloc
;
/* always kept up-to-date */
26
long
CurrentBytesFromValloc
;
/* always kept up-to-date */
27
long
UsedBytesFromValloc
;
/* set in omUpdateInfo() */
28
long
AvailBytesFromValloc
;
/* set in omUpdateInfo() */
29
long
MaxPages
;
/* always kept up-to-date */
30
long
UsedPages
;
/* always kept up-to-date */
31
long
AvailPages
;
/* always kept up-to-date */
32
long
MaxRegionsAlloc
;
/* always kept up-to-date */
33
long
CurrentRegionsAlloc
;
/* always kept up-to-date */
34
};
35
36
/* returns a copy of omallinfo struct */
37
extern
struct
omInfo_s
omGetInfo
(void);
38
/* the struct itself which is always up-to-date */
39
/* use read-only */
40
extern
struct
omInfo_s
om_Info
;
41
/* update the global info struct */
42
extern
void
omUpdateInfo
(
void
);
43
/* initialize such that sbrk can be measured */
44
extern
void
omInitInfo
(
void
);
45
extern
void
omPrintStats
(FILE*
fd
);
46
extern
void
omPrintInfo
(FILE*
fd
);
47
48
/*BEGINPRIVATE*/
49
/* used internally to keep track of sbrk */
50
extern
unsigned
long
om_SbrkInit
;
51
/*ENDPRIVATE*/
52
#endif
/* OM_STATS_H */
omInitInfo
void omInitInfo(void)
Definition:
omStats.c:20
om_SbrkInit
unsigned long om_SbrkInit
Definition:
omStats.c:18
om_Info
struct omInfo_s om_Info
Definition:
omStats.c:16
omUpdateInfo
void omUpdateInfo(void)
Definition:
omStats.c:27
omGetInfo
struct omInfo_s omGetInfo(void)
Definition:
omStats.c:112
fd
int status int fd
Definition:
si_signals.h:59
omInfo_s::UsedBytesMalloc
long UsedBytesMalloc
Definition:
omStats.h:20
omInfo_s::CurrentBytesFromValloc
long CurrentBytesFromValloc
Definition:
omStats.h:26
omInfo_s::CurrentBytesFromMalloc
long CurrentBytesFromMalloc
Definition:
omStats.h:24
omInfo_s::InternalUsedBytesMalloc
long InternalUsedBytesMalloc
Definition:
omStats.h:21
omInfo_s::AvailBytesMalloc
long AvailBytesMalloc
Definition:
omStats.h:22
omInfo_s::CurrentBytesMmap
long CurrentBytesMmap
Definition:
omStats.h:17
omInfo_s::AvailPages
long AvailPages
Definition:
omStats.h:31
omInfo_s::CurrentRegionsAlloc
long CurrentRegionsAlloc
Definition:
omStats.h:33
omInfo_s::UsedBytesFromValloc
long UsedBytesFromValloc
Definition:
omStats.h:27
omInfo_s::MaxBytesFromValloc
long MaxBytesFromValloc
Definition:
omStats.h:25
omInfo_s::MaxPages
long MaxPages
Definition:
omStats.h:29
omPrintStats
#define omPrintStats(F)
Definition:
xalloc.h:231
omInfo_s::CurrentBytesSystem
long CurrentBytesSystem
Definition:
omStats.h:13
omPrintInfo
#define omPrintInfo(F)
Definition:
xalloc.h:232
omInfo_s::AvailBytesFromValloc
long AvailBytesFromValloc
Definition:
omStats.h:28
omInfo_s::MaxBytesSbrk
long MaxBytesSbrk
Definition:
omStats.h:14
omInfo_s::MaxRegionsAlloc
long MaxRegionsAlloc
Definition:
omStats.h:32
omInfo_s::UsedPages
long UsedPages
Definition:
omStats.h:30
omInfo_s::UsedBytes
long UsedBytes
Definition:
omStats.h:18
omInfo_s::MaxBytesFromMalloc
long MaxBytesFromMalloc
Definition:
omStats.h:23
omInfo_s::CurrentBytesSbrk
long CurrentBytesSbrk
Definition:
omStats.h:15
omInfo_s::MaxBytesMmap
long MaxBytesMmap
Definition:
omStats.h:16
omInfo_s::MaxBytesSystem
long MaxBytesSystem
Definition:
omStats.h:12
omInfo_s::AvailBytes
long AvailBytes
Definition:
omStats.h:19
omInfo_s
Definition:
omStats.h:11
Generated on Mon Feb 27 2023 10:53:49 for My Project by
doxygen 1.9.5
for
Singular