#include <LeakFinder.h>

Collaboration diagram for LeakFinder:

Public Member Functions

 LeakFinder ()
 
 ~LeakFinder ()
 
void * addSome (void *, const char *, const int)
 
void * touch (void *, const char *, const int)
 
void * freeSome (void *, const char *, const int)
 
void dump ()
 

Private Attributes

hash_tabletable
 
int count
 
time_t last_dump
 

Static Private Attributes

static HASHCMP cmp
 
static HASHHASH hash
 

Detailed Description

Definition at line 30 of file LeakFinder.h.

Constructor & Destructor Documentation

LeakFinder::LeakFinder ( )

Definition at line 37 of file LeakFinder.cc.

References cmp, debugs, hash, hash_create(), and table.

LeakFinder::~LeakFinder ( )

Member Function Documentation

void * LeakFinder::addSome ( void *  p,
const char *  file,
const int  line 
)

Definition at line 54 of file LeakFinder.cc.

References assert, count, hash_join(), hash_lookup(), NULL, p, and table.

void * LeakFinder::freeSome ( void *  p,
const char *  file,
const int  line 
)

Definition at line 76 of file LeakFinder.cc.

References assert, count, dump(), hash_lookup(), hash_remove_link(), p, and table.

void * LeakFinder::touch ( void *  p,
const char *  file,
const int  line 
)

Member Data Documentation

int LeakFinder::cmp
staticprivate

Definition at line 46 of file LeakFinder.h.

Referenced by LeakFinder().

int LeakFinder::count
private

Definition at line 52 of file LeakFinder.h.

Referenced by addSome(), dump(), and freeSome().

unsigned int LeakFinder::hash
staticprivate

Definition at line 48 of file LeakFinder.h.

Referenced by LeakFinder().

time_t LeakFinder::last_dump
private

Definition at line 54 of file LeakFinder.h.

Referenced by dump().

hash_table* LeakFinder::table
private

Definition at line 50 of file LeakFinder.h.

Referenced by addSome(), dump(), freeSome(), LeakFinder(), and touch().


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

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors