Loading...
Searching...
No Matches
omStats.h
Go to the documentation of this file.
/*******************************************************************
* File: omStats.h
* Purpose: declaration of statistics related stuff
* Author: obachman (Olaf Bachmann)
* Created: 11/99
*******************************************************************/
#ifndef OM_STATS_H
#define OM_STATS_H
struct omInfo_s
{
long MaxBytesSystem; /* set in omUpdateInfo(), is more accurate with malloc support */
long CurrentBytesSystem; /* set in omUpdateInfo(), is more accurate with malloc support */
long MaxBytesSbrk; /* always up-to-date, not very accurate, needs omInintInfo() */
long CurrentBytesSbrk; /* set in omUpdateInfo(), needs omInintInfo() */
long MaxBytesMmap; /* set in omUpdateInfo(), not very accurate */
long CurrentBytesMmap; /* set in omUpdateInfo(), not very accurate */
long UsedBytes; /* set in omUpdateInfo() */
long AvailBytes; /* set in omUpdateInfo() */
long UsedBytesMalloc; /* set in omUpdateInfo(), needs malloc support */
long InternalUsedBytesMalloc;
long AvailBytesMalloc; /* set in omUpdateInfo(), needs malloc support */
long MaxBytesFromMalloc; /* always kept up-to-date */
long CurrentBytesFromMalloc; /* always kept up-to-date */
long MaxBytesFromValloc; /* always kept up-to-date */
long CurrentBytesFromValloc; /* always kept up-to-date */
long UsedBytesFromValloc; /* set in omUpdateInfo() */
long AvailBytesFromValloc;/* set in omUpdateInfo() */
long MaxPages; /* always kept up-to-date */
long UsedPages; /* always kept up-to-date */
long AvailPages; /* always kept up-to-date */
long MaxRegionsAlloc; /* always kept up-to-date */
long CurrentRegionsAlloc; /* always kept up-to-date */
};
/* returns a copy of omallinfo struct */
extern struct omInfo_s omGetInfo(void);
/* the struct itself which is always up-to-date */
/* use read-only */
extern struct omInfo_s om_Info;
/* update the global info struct */
extern void omUpdateInfo(void);
/* initialize such that sbrk can be measured */
extern void omInitInfo(void);
extern void omPrintStats(FILE* fd);
extern void omPrintInfo(FILE* fd);
/*BEGINPRIVATE*/
/* used internally to keep track of sbrk */
extern unsigned long om_SbrkInit;
/*ENDPRIVATE*/
#endif /* OM_STATS_H */
om_SbrkInit
unsigned long om_SbrkInit
Definition omStats.c:18
om_Info
omInfo_t om_Info
Definition omStats.c:16
omGetInfo
omInfo_t omGetInfo()
Definition omStats.c:112
omInitInfo
void omInitInfo(void)
Definition omStats.c:20
omUpdateInfo
void omUpdateInfo(void)
Definition omStats.c:27
fd
int status int fd
Definition si_signals.h:69
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