Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members | File Members

memtrack.H File Reference

#include <iostream>

Include dependency graph for memtrack.H:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Compounds

class  Memtrack
 Memory tracking functions. More...


Defines

#define calloc(a, b)   callocp(a,b,__FILE__, __LINE__)
#define realloc(a, b)   reallocp(a, b, __FILE__, __LINE__)
#define malloc(a)   mallocp(a, __FILE__, __LINE__)
#define free(a)   freep(a)

Functions

void ReportUnfreedMemory (ostream &os)
void ReportMemoryUsage (ostream &os)
void UnfreedMemory ()
 calls ReportUnfreedMemory with pout()

void MemoryUsage ()
 calls ReportMemoryUsage with pout()

void memTrackingOn ()
void memtrackingOff ()
void overallMemoryUsage (long long &currentTotal, long long &peak)
void AddTrack (void *addr, size_t asize, const char *fname, int lnum, bool malloc)
void RemoveTrack (void *addr, bool malloc)
void * mallocp (size_t size, const char *file, int line)
void * reallocp (void *p, size_t size, const char *file, int line)
void * callocp (size_t nelem, size_t elsize, const char *file, int line)
void freep (void *p)


Define Documentation

#define calloc a,
 )     callocp(a,b,__FILE__, __LINE__)
 

#define realloc a,
 )     reallocp(a, b, __FILE__, __LINE__)
 

#define malloc  )     mallocp(a, __FILE__, __LINE__)
 

#define free  )     freep(a)
 


Function Documentation

void ReportUnfreedMemory ostream &  os  ) 
 

void ReportMemoryUsage ostream &  os  ) 
 

void UnfreedMemory  ) 
 

calls ReportUnfreedMemory with pout()

void MemoryUsage  ) 
 

calls ReportMemoryUsage with pout()

void memTrackingOn  ) 
 

void memtrackingOff  ) 
 

void overallMemoryUsage long long &  currentTotal,
long long &  peak
 

void AddTrack void *  addr,
size_t  asize,
const char *  fname,
int  lnum,
bool  malloc
 

void RemoveTrack void *  addr,
bool  malloc
 

void* mallocp size_t  size,
const char *  file,
int  line
 

void* reallocp void *  p,
size_t  size,
const char *  file,
int  line
 

void* callocp size_t  nelem,
size_t  elsize,
const char *  file,
int  line
 

void freep void *  p  ) 
 


Generated on Fri Jul 2 17:54:49 2004 for Chombo by doxygen 1.3.2