Loading [MathJax]/extensions/tex2jax.js
CoreNEURON
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
memory_utils.cpp File Reference

Provides functionality to report current memory usage of the simulator using interface provided by malloc.h. More...

Detailed Description

Provides functionality to report current memory usage of the simulator using interface provided by malloc.h.

Date
25th Oct 2014

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.

See also
http://man7.org/linux/man-pages/man3/malloc_info.3.html

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...