|
Tesseract 3.01
|
#include "mfcpch.h"#include <stdlib.h>#include <string.h>#include "stderr.h"#include "memryerr.h"#include "hashfn.h"#include "tprintf.h"#include "memry.h"#include "memblk.h"#include <signal.h>Classes | |
| class | UWREC |
Defines | |
| #define | EXTERN |
Functions | |
| void * | trace_caller (inT32 depth) |
| inT32 | identify_struct_owner (inT32 struct_count, const char *name) |
| void | check_struct (inT8 level, inT32 count) |
| void | check_structs (inT8 level) |
| void * | new_struct_block () |
| void | old_struct_block (MEMUNION *deadblock) |
Variables | |
| MEMUNION * | free_block = NULL |
| EXTERN MEM_ALLOCATOR | big_mem |
| EXTERN MEM_ALLOCATOR | main_mem |
| EXTERN MEMUNION * | free_structs [MAX_STRUCTS] |
| EXTERN inT32 | structs_in_use [MAX_STRUCTS] |
| EXTERN inT32 | blocks_in_use [MAX_STRUCTS] |
| EXTERN MEMUNION * | struct_blocks [MAX_STRUCTS] |
| EXTERN const char * | owner_names [MAX_STRUCTS][MAX_CLASSES] |
| EXTERN inT32 | owner_counts [MAX_STRUCTS][MAX_CLASSES] |
| EXTERN inT16 | name_counts [MAX_STRUCTS] |
| EXTERN inT32 | free_struct_blocks |
| EXTERN int | mem_mallocdepth = 0 |
| EXTERN int | mem_mallocbits = 8 |
| EXTERN int | mem_freedepth = 0 |
| EXTERN int | mem_freebits = 8 |
| EXTERN int | mem_countbuckets = 16 |
| EXTERN int | mem_checkfreq = 0 |
| #define EXTERN |
| void check_structs | ( | inT8 | level | ) |
| void* new_struct_block | ( | ) |
| void old_struct_block | ( | MEMUNION * | deadblock | ) |
| void* trace_caller | ( | inT32 | depth | ) |
| EXTERN MEM_ALLOCATOR big_mem |
| EXTERN inT32 blocks_in_use[MAX_STRUCTS] |
| MEMUNION* free_block = NULL |
| EXTERN inT32 free_struct_blocks |
| EXTERN MEMUNION* free_structs[MAX_STRUCTS] |
| EXTERN MEM_ALLOCATOR main_mem |
| EXTERN int mem_checkfreq = 0 |
"Calls to alloc_mem between owner counts"
| EXTERN int mem_countbuckets = 16 |
"No of buckets for histogram"
| EXTERN int mem_freebits = 8 |
"Log 2 of hash table size"
| EXTERN int mem_freedepth = 0 |
"Free stack dpeth to trace"
| EXTERN int mem_mallocbits = 8 |
"Log 2 of hash table size"
| EXTERN int mem_mallocdepth = 0 |
"Malloc stack depth to trace"
| EXTERN inT16 name_counts[MAX_STRUCTS] |
| EXTERN inT32 owner_counts[MAX_STRUCTS][MAX_CLASSES] |
| EXTERN const char* owner_names[MAX_STRUCTS][MAX_CLASSES] |
| EXTERN MEMUNION* struct_blocks[MAX_STRUCTS] |
| EXTERN inT32 structs_in_use[MAX_STRUCTS] |