CoreNEURON
|
Provides functionality to report current memory usage of the simulator using interface provided by malloc.h. More...
Provides functionality to report current memory usage of the simulator using interface provided by malloc.h.
Memory utilisation report is based on the use of mallinfo interface defined in malloc.h. For 64 bit platform, this is not portable and hence it will be replaced with new glibc implementation of malloc_info.
Definition in file memory_utils.cpp.
#include <stdio.h>
#include <fstream>
#include <unistd.h>
#include "coreneuron/utils/memory_utils.h"
#include "coreneuron/mpi/nrnmpi.h"
#include "coreneuron/mpi/core/nrnmpi.hpp"
#include "coreneuron/apps/corenrn_parameters.hpp"
Go to the source code of this file.
Namespaces | |
coreneuron | |
THIS FILE IS AUTO GENERATED DONT MODIFY IT. | |
Functions | |
double | coreneuron::nrn_mallinfo (void) |
Returns current memory usage in KBs. More... | |
void | coreneuron::report_mem_usage (const char *message, bool all_ranks=false) |
Reports current memory usage of the simulator to stdout. More... | |