My Project
Loading...
Searching...
No Matches
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
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 */
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 */
37extern struct omInfo_s omGetInfo(void);
38/* the struct itself which is always up-to-date */
39/* use read-only */
40extern struct omInfo_s om_Info;
41/* update the global info struct */
42extern void omUpdateInfo(void);
43/* initialize such that sbrk can be measured */
44extern void omInitInfo(void);
45extern void omPrintStats(FILE* fd);
46extern void omPrintInfo(FILE* fd);
47
48/*BEGINPRIVATE*/
49/* used internally to keep track of sbrk */
50extern unsigned long om_SbrkInit;
51/*ENDPRIVATE*/
52#endif /* OM_STATS_H */
void omInitInfo(void)
Definition: omStats.c:20
unsigned long om_SbrkInit
Definition: omStats.c:18
struct omInfo_s om_Info
Definition: omStats.c:16
void omUpdateInfo(void)
Definition: omStats.c:27
struct omInfo_s omGetInfo(void)
Definition: omStats.c:112
int status int fd
Definition: si_signals.h:59
long UsedBytesMalloc
Definition: omStats.h:20
long CurrentBytesFromValloc
Definition: omStats.h:26
long CurrentBytesFromMalloc
Definition: omStats.h:24
long InternalUsedBytesMalloc
Definition: omStats.h:21
long AvailBytesMalloc
Definition: omStats.h:22
long CurrentBytesMmap
Definition: omStats.h:17
long AvailPages
Definition: omStats.h:31
long CurrentRegionsAlloc
Definition: omStats.h:33
long UsedBytesFromValloc
Definition: omStats.h:27
long MaxBytesFromValloc
Definition: omStats.h:25
long MaxPages
Definition: omStats.h:29
#define omPrintStats(F)
Definition: xalloc.h:231
long CurrentBytesSystem
Definition: omStats.h:13
#define omPrintInfo(F)
Definition: xalloc.h:232
long AvailBytesFromValloc
Definition: omStats.h:28
long MaxBytesSbrk
Definition: omStats.h:14
long MaxRegionsAlloc
Definition: omStats.h:32
long UsedPages
Definition: omStats.h:30
long UsedBytes
Definition: omStats.h:18
long MaxBytesFromMalloc
Definition: omStats.h:23
long CurrentBytesSbrk
Definition: omStats.h:15
long MaxBytesMmap
Definition: omStats.h:16
long MaxBytesSystem
Definition: omStats.h:12
long AvailBytes
Definition: omStats.h:19