#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::LeakFinder ( )

Definition at line 37 of file LeakFinder.cc.

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

◆ ~LeakFinder()

LeakFinder::~LeakFinder ( )

Member Function Documentation

◆ addSome()

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.

◆ dump()

◆ freeSome()

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

Definition at line 76 of file LeakFinder.cc.

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

◆ touch()

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

Member Data Documentation

◆ cmp

int LeakFinder::cmp
staticprivate

Definition at line 46 of file LeakFinder.h.

Referenced by freeSome(), and LeakFinder().

◆ count

int LeakFinder::count
private

Definition at line 52 of file LeakFinder.h.

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

◆ hash

unsigned int LeakFinder::hash
staticprivate

Definition at line 48 of file LeakFinder.h.

Referenced by freeSome(), and LeakFinder().

◆ last_dump

time_t LeakFinder::last_dump
private

Definition at line 54 of file LeakFinder.h.

Referenced by dump().

◆ table

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