nsTraceMallocCallbacks.h File Reference


Classes

struct  stack_buffer_info
struct  tm_thread

Typedefs

typedef struct tm_thread tm_thread

Functions

tm_threadtm_get_thread (void)
 PR_EXTERN (void) MallocCallback(void *aPtr
 Sets SecurityCotext for proxy env.
void * dhw_orig_malloc (size_t)
void * dhw_orig_calloc (size_t, size_t)
void * dhw_orig_realloc (void *, size_t)
void dhw_orig_free (void *)

Variables

size_t aSize
size_t PRUint32 start
size_t PRUint32 PRUint32 end
size_t PRUint32 PRUint32
tm_thread
t
size_t aCount
void * aPout


Typedef Documentation

typedef struct tm_thread tm_thread


Function Documentation

tm_thread* tm_get_thread ( void   ) 

PR_EXTERN ( void   ) 

Stop all malloc tracing, flushing any buffered events to the logfile.

Print the stack trace identified.

Track all realloc and free calls operating on a given allocation.

Flush all logfile buffers.

Walk the stack, dumping frames in standard form to ofp.

Emit a timestamp event with the given caption to the current log file.

Close the file descriptor fd and forget any bookkeeping associated with it.

Enable malloc tracing.

Disable malloc tracing.

Stop all malloc tracing, flushing any buffered events to the logfile.

Do nothing if fd is -1.

If skip is 0, exclude the frames for NS_TraceStack and anything it calls to do the walk. If skip is less than 0, include -skip such frames. If skip is positive, exclude that many frames leading to the call to NS_TraceStack.

void * dhw_orig_malloc ( size_t  size  ) 

void * dhw_orig_calloc ( size_t  count,
size_t  size 
)

void * dhw_orig_realloc ( void *  pin,
size_t  size 
)

void dhw_orig_free ( void *  p  ) 


Variable Documentation

void size_t aSize

PRUint32 start

void* aPout


Generated Mozilla by doxygen 1.5.6