PPL Logo

TraceMemory Class Reference

class to trace all memory related events. More...

#include <trace-memory.h>

Inheritance diagram for TraceMemory:

Inheritance graph
[legend]
Collaboration diagram for TraceMemory:

Collaboration graph
[legend]

Public Member Functions

 TraceMemory (char **argv)
void traceBegin ()
void traceClose ()
void malloc (void *where, int size, void **stack, int stackSize)
void free (void *where, int size)

Private Member Functions

void checkFlush (int add)
void flush ()

Private Attributes

bool firstTime
bool recordStack
bool traceDisabled
int logBufSize
int usedBuffer
char * logBuffer

Detailed Description

class to trace all memory related events.

Currently works only in conjunction with "-memory charmdebug".

Definition at line 38 of file trace-memory.h.


Constructor & Destructor Documentation

TraceMemory::TraceMemory ( char **  argv  ) 

Definition at line 45 of file trace-memory.C.

References Converse::CkMyPe(), CmiGetArgFlagDesc(), CmiGetArgIntDesc(), CmiPrintf(), firstTime, logBuffer, logBufSize, malloc(), recordStack, traceDisabled, and usedBuffer.

Here is the call graph for this function:


Member Function Documentation

void TraceMemory::checkFlush ( int  add  )  [inline, private]

Definition at line 65 of file trace-memory.C.

References flush(), logBufSize, and usedBuffer.

Referenced by free(), malloc(), and traceBegin().

Here is the call graph for this function:

Here is the caller graph for this function:

void TraceMemory::flush ( void   )  [inline, private]

Definition at line 71 of file trace-memory.C.

References Converse::CkMyPe(), CmiAbort(), firstTime, xi::fname, logBuffer, traceDisabled, and usedBuffer.

Referenced by checkFlush(), and traceClose().

Here is the call graph for this function:

Here is the caller graph for this function:

void TraceMemory::traceBegin ( void   )  [virtual]

Reimplemented from Trace.

Definition at line 102 of file trace-memory.C.

References checkFlush(), get_memory_allocated_user_total(), logBuffer, and usedBuffer.

Here is the call graph for this function:

void TraceMemory::traceClose ( void   )  [virtual]

Reimplemented from Trace.

Definition at line 98 of file trace-memory.C.

References flush().

Here is the call graph for this function:

void TraceMemory::malloc ( void *  where,
int  size,
void **  stack,
int  stackSize 
) [virtual]

Reimplemented from Trace.

Definition at line 109 of file trace-memory.C.

References checkFlush(), logBuffer, recordStack, traceDisabled, and usedBuffer.

Referenced by TraceMemory().

Here is the call graph for this function:

Here is the caller graph for this function:

void TraceMemory::free ( void *  where,
int  size 
) [virtual]

Reimplemented from Trace.

Definition at line 120 of file trace-memory.C.

References checkFlush(), logBuffer, traceDisabled, and usedBuffer.

Here is the call graph for this function:


Field Documentation

Definition at line 40 of file trace-memory.h.

Referenced by flush(), and TraceMemory().

Definition at line 41 of file trace-memory.h.

Referenced by malloc(), and TraceMemory().

Definition at line 42 of file trace-memory.h.

Referenced by flush(), free(), malloc(), and TraceMemory().

Definition at line 43 of file trace-memory.h.

Referenced by checkFlush(), and TraceMemory().

Definition at line 44 of file trace-memory.h.

Referenced by checkFlush(), flush(), free(), malloc(), traceBegin(), and TraceMemory().

char* TraceMemory::logBuffer [private]

Definition at line 45 of file trace-memory.h.

Referenced by flush(), free(), malloc(), traceBegin(), and TraceMemory().


The documentation for this class was generated from the following files:

Generated on Mon Sep 21 08:31:18 2020 for Charm++ by  doxygen 1.5.5