source: git/omalloc/omStats.h @ f5d2647

spielwiese
Last change on this file since f5d2647 was 6ce030f, checked in by Oleksandr Motsak <motsak@…>, 12 years ago
removal of the $Id$ svn tag from everywhere NOTE: the git SHA1 may be used instead (only on special places) NOTE: the libraries Singular/LIB/*.lib still contain the marker due to our current use of svn
  • Property mode set to 100644
File size: 2.2 KB
Line 
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
10struct 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 AvailBytesMalloc;    /* set in omUpdateInfo(), needs malloc support */
22  long MaxBytesFromMalloc;      /* always kept up-to-date */
23  long CurrentBytesFromMalloc;  /* always kept up-to-date */
24  long MaxBytesFromValloc;      /* always kept up-to-date */
25  long CurrentBytesFromValloc;  /* always kept up-to-date */
26  long UsedBytesFromValloc; /* set in omUpdateInfo()  */
27  long AvailBytesFromValloc;/* set in omUpdateInfo()  */
28  long MaxPages;            /* always kept up-to-date */
29  long UsedPages;           /* always kept up-to-date */
30  long AvailPages;          /* always kept up-to-date */
31  long MaxRegionsAlloc;     /* always kept up-to-date */
32  long CurrentRegionsAlloc; /* always kept up-to-date */
33};
34
35/* returns a copy of omallinfo struct */
36extern struct omInfo_s omGetInfo();
37/* the struct itself which is always up-to-date */
38/* use read-only */
39extern struct omInfo_s om_Info;
40/* update the global info struct */
41extern void omUpdateInfo();
42/* initialize such that sbrk can be measured */
43extern void omInitInfo();
44extern void omPrintStats(FILE* fd);
45extern void omPrintInfo(FILE* fd);
46
47/*BEGINPRIVATE*/
48/* used internally to keep track of sbrk */
49extern unsigned long om_SbrkInit;
50/*ENDPRIVATE*/
51#endif /* OM_STATS_H */
Note: See TracBrowser for help on using the repository browser.