GDB (xrefs)
Loading...
Searching...
No Matches
Classes | Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
gdb::bcache Struct Reference

#include "bcache.h"

Inheritance diagram for gdb::bcache:
psymbol_bcache

Classes

struct  m_cache
 

Public Member Functions

virtual ~bcache ()
 
const void * insert (const void *addr, int length, bool *added=nullptr)
 
void print_statistics (const char *type)
 
int memory_used ()
 

Protected Member Functions

virtual unsigned long hash (const void *addr, int length)
 
virtual int compare (const void *left, const void *right, int length)
 

Private Member Functions

void expand_hash_table ()
 

Private Attributes

unsigned int m_num_buckets = 0
 
struct bstring ** m_bucket = nullptr
 
unsigned long m_unique_count = 0
 
long m_total_count = 0
 
long m_unique_size = 0
 
long m_total_size = 0
 
long m_structure_size = 0
 
unsigned long m_expand_count = 0
 
unsigned long m_expand_hash_count = 0
 
unsigned long m_half_hash_miss_count = 0
 

Detailed Description

Definition at line 143 of file bcache.h.

Constructor & Destructor Documentation

◆ ~bcache()

gdb::bcache::~bcache ( )
virtual

Definition at line 231 of file bcache.c.

References m_bucket, m_total_count, and xfree().

Member Function Documentation

◆ compare()

int gdb::bcache::compare ( const void * left,
const void * right,
int length )
protectedvirtual

Reimplemented in psymbol_bcache.

Definition at line 225 of file bcache.c.

◆ expand_hash_table()

void gdb::bcache::expand_hash_table ( )
private

◆ hash()

unsigned long gdb::bcache::hash ( const void * addr,
int length )
protectedvirtual

Reimplemented in psymbol_bcache.

Definition at line 217 of file bcache.c.

Referenced by expand_hash_table(), and insert().

◆ insert()

const void * gdb::bcache::insert ( const void * addr,
int length,
bool * added = nullptr )

◆ memory_used()

int gdb::bcache::memory_used ( )

Definition at line 384 of file bcache.c.

References m_total_count.

Referenced by print_objfile_statistics().

◆ print_statistics()

void gdb::bcache::print_statistics ( const char * type)

Member Data Documentation

◆ m_bucket

struct bstring** gdb::bcache::m_bucket = nullptr
private

Definition at line 184 of file bcache.h.

Referenced by expand_hash_table(), insert(), print_statistics(), and ~bcache().

◆ m_expand_count

unsigned long gdb::bcache::m_expand_count = 0
private

Definition at line 197 of file bcache.h.

Referenced by expand_hash_table(), and print_statistics().

◆ m_expand_hash_count

unsigned long gdb::bcache::m_expand_hash_count = 0
private

Definition at line 198 of file bcache.h.

Referenced by expand_hash_table(), and print_statistics().

◆ m_half_hash_miss_count

unsigned long gdb::bcache::m_half_hash_miss_count = 0
private

Definition at line 202 of file bcache.h.

Referenced by insert(), and print_statistics().

◆ m_num_buckets

unsigned int gdb::bcache::m_num_buckets = 0
private

Definition at line 180 of file bcache.h.

Referenced by expand_hash_table(), insert(), and print_statistics().

◆ m_structure_size

long gdb::bcache::m_structure_size = 0
private

Definition at line 191 of file bcache.h.

Referenced by expand_hash_table(), insert(), and print_statistics().

◆ m_total_count

long gdb::bcache::m_total_count = 0
private

Definition at line 188 of file bcache.h.

Referenced by insert(), memory_used(), print_statistics(), and ~bcache().

◆ m_total_size

long gdb::bcache::m_total_size = 0
private

Definition at line 190 of file bcache.h.

Referenced by insert(), and print_statistics().

◆ m_unique_count

unsigned long gdb::bcache::m_unique_count = 0
private

Definition at line 187 of file bcache.h.

Referenced by expand_hash_table(), insert(), and print_statistics().

◆ m_unique_size

long gdb::bcache::m_unique_size = 0
private

Definition at line 189 of file bcache.h.

Referenced by insert(), and print_statistics().


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