1 #include <../../nrnconf.h>
44 static char rcsid[] =
"memstat.c,v 1.1 1997/12/04 17:55:39 hines Exp";
84 unsigned long lp = (size_t)ptr;
121 "\n WARNING !!! static memory: mem_stat_var is too small\n");
123 " Increase MEM_HASHSIZE in file: %s (currently = %d)\n\n",
125 if ( !isatty(fileno(stdout)) ) {
127 "\n WARNING !!! static memory: mem_stat_var is too small\n");
129 " Increase MEM_HASHSIZE in file: %s (currently = %d)\n\n",
164 if ( type < 0 || type >=
mem_connect[list].ntypes ||
199 else if (mark == 0) {
235 else if (mark == 0) {
248 if (
j == 0)
continue;
253 if ( free_fn !=
NULL )
287 fprintf(
fp,
" Array mem_stat_var (list no. %d):\n",list);
290 if (
j == 0)
continue;
293 fprintf(
fp,
" %d. var = 0x%p, type = %s, mark = %d\n",
342 while ((par = va_arg(ap,
void **))) {
372 list = va_arg(ap,
int);
373 type = va_arg(ap,
int);
374 while ((par = va_arg(ap,
void **))) {
#define error(err_num, fn_name)
void warning(const char *s, const char *t)
double var(InputIterator begin, InputIterator end)
#define MEM_CONNECT_MAX_LISTS
#define MEM_HASHSIZE_FILE
int mem_stat_reg_list(void **var, int type, int list)
int mem_stat_mark(int mark)
static MEM_STAT_STRUCT mem_stat_var[MEM_HASHSIZE]
static int mem_lookup(void **var)
void mem_stat_dump(FILE *fp, int list)
static unsigned int mem_hash_idx_end
MEM_CONNECT mem_connect[MEM_CONNECT_MAX_LISTS]
static unsigned int mem_hash_idx[MEM_HASHSIZE]
static unsigned int mem_hash(void **ptr)
int mem_stat_free_list(int mark, int list)
int mem_stat_show_mark(void)
static int mem_stat_mark_curr
int mem_stat_reg_vars(int list, int type,...)
static int mem_stat_mark_many
int const size_t const size_t n
static philox4x32_key_t k