NEURON
memstat.c File Reference
#include <../../nrnconf.h>
#include <stdio.h>
#include "matrix.h"
#include "meminfo.h"
#include "zmatrix.h"
#include "sparse.h"
#include "iter.h"

Go to the source code of this file.

Classes

struct  MEM_STAT_STRUCT
 

Functions

static unsigned int mem_hash (void **ptr)
 
static int mem_lookup (void **var)
 
int mem_stat_reg_list (void **var, int type, int list)
 
int mem_stat_mark (int mark)
 
int mem_stat_free_list (int mark, int list)
 
void mem_stat_dump (FILE *fp, int list)
 
int mem_stat_show_mark (void)
 
int mem_stat_reg_vars (int list, int type,...)
 

Variables

static char rcsid [] = "memstat.c,v 1.1 1997/12/04 17:55:39 hines Exp"
 
MEM_CONNECT mem_connect [MEM_CONNECT_MAX_LISTS]
 
static int mem_stat_mark_many = 0
 
static int mem_stat_mark_curr = 0
 
static MEM_STAT_STRUCT mem_stat_var [MEM_HASHSIZE]
 
static unsigned int mem_hash_idx [MEM_HASHSIZE]
 
static unsigned int mem_hash_idx_end = 0
 

Function Documentation

◆ mem_hash()

static unsigned int mem_hash ( void **  ptr)
static

Definition at line 81 of file memstat.c.

◆ mem_lookup()

static int mem_lookup ( void **  var)
static

Definition at line 91 of file memstat.c.

◆ mem_stat_dump()

void mem_stat_dump ( FILE *  fp,
int  list 
)

Definition at line 277 of file memstat.c.

◆ mem_stat_free_list()

int mem_stat_free_list ( int  mark,
int  list 
)

Definition at line 221 of file memstat.c.

◆ mem_stat_mark()

int mem_stat_mark ( int  mark)

Definition at line 192 of file memstat.c.

◆ mem_stat_reg_list()

int mem_stat_reg_list ( void **  var,
int  type,
int  list 
)

Definition at line 152 of file memstat.c.

◆ mem_stat_reg_vars()

int mem_stat_reg_vars ( int  list,
int  type,
  ... 
)

Definition at line 335 of file memstat.c.

◆ mem_stat_show_mark()

int mem_stat_show_mark ( void  )

Definition at line 310 of file memstat.c.

Variable Documentation

◆ mem_connect

MEM_CONNECT mem_connect[MEM_CONNECT_MAX_LISTS]
extern

Definition at line 100 of file meminfo.c.

◆ mem_hash_idx

unsigned int mem_hash_idx[MEM_HASHSIZE]
static

Definition at line 72 of file memstat.c.

◆ mem_hash_idx_end

unsigned int mem_hash_idx_end = 0
static

Definition at line 75 of file memstat.c.

◆ mem_stat_mark_curr

int mem_stat_mark_curr = 0
static

Definition at line 66 of file memstat.c.

◆ mem_stat_mark_many

int mem_stat_mark_many = 0
static

Definition at line 63 of file memstat.c.

◆ mem_stat_var

MEM_STAT_STRUCT mem_stat_var[MEM_HASHSIZE]
static

Definition at line 69 of file memstat.c.

◆ rcsid

char rcsid[] = "memstat.c,v 1.1 1997/12/04 17:55:39 hines Exp"
static

Definition at line 44 of file memstat.c.