SiReNe Simulation Software
1.0
|
Memory management functions. More...
#include "Sirene.h"
Go to the source code of this file.
Functions | |
SynapseModel ** | SynapseModelsAlloc (int NbModels) |
Memory allocation of synapse models. More... | |
void | MemoryRelease (Simul *) |
Memory de-allocation of all dynamic variables used in the simulation. More... | |
void * | MYMALLOC (size_t Size) |
Inline allocation function with profiling of memory consumption. More... | |
void | MYFREE (void *Ptr) |
Inline free function with profiling of memory consumption. More... | |
void | DISPLAYMEM () |
Memory consumption report. More... | |
Variables | |
unsigned long | MEMORY |
Total amount of requested memory. More... | |
unsigned long | ALLOCATED |
Total amount of actually allocated memory. More... | |
unsigned long | FREED |
Total amount of de-allocated memory. More... | |
void MemoryRelease | ( | Simul * | Simulation | ) |
Simulation | Structure where all simulation information is stored |
References Simul::BufferSpikes, Simul::DVar, Neuron::InitialValues, Neuron::InputParameters, MYFREE(), Simul::NeuralModels, NeuralModel::Neurons, Simul::NumberNeuralModels, NeuralModel::NumberOfNeurons, Neuron::Parameters, NeuralModel::Parameters, SynapseModel::Parameters, Simul::SynapseModels, Neuron::SynCurrentFactor, and Simul::Variables.
Referenced by main().
|
inline |
|
inline |
Size | Number of bytes to allocate |
References ALLOCATED, and MEMORY.
Referenced by Advance(), main(), PrepareSimu(), and SynapseModelsAlloc().
SynapseModel** SynapseModelsAlloc | ( | int | NbModels | ) |
NbModels | Numbers of neural models |
References MYMALLOC().
Referenced by main().
unsigned long ALLOCATED |
Referenced by DISPLAYMEM(), and MYMALLOC().
unsigned long FREED |
Referenced by DISPLAYMEM(), and MYFREE().
unsigned long MEMORY |
Referenced by DISPLAYMEM(), and MYMALLOC().