Back to index

salome-smesh  6.5.0
Defines | Functions
memoire.h File Reference
#include <malloc.h>
#include <iostream>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define MEMOSTAT

Functions

void memostat (const char *f, int l)

Define Documentation

#define MEMOSTAT

Definition at line 41 of file memoire.h.


Function Documentation

void memostat ( const char *  f,
int  l 
)

Definition at line 28 of file memoire.h.

{
#ifdef WIN32
       //rnv: TODO: find alternative of the malloc_stats() on windows platform
#else
  /*  struct mallinfo mem = mallinfo(); */
  /*  std::cerr << f << ":"<< l << " " << mem.arena << " " << mem.ordblks << " " << mem.hblks << " " << mem.hblkhd << " "  << mem.uordblks << " "  << mem.fordblks << " " << mem.keepcost << std::endl; */
  std::cerr << f << ":" << l << " --------------------------" << std::endl;
  malloc_stats();
  std::cerr << f << ":" << l << " --------------------------" << std::endl;
#endif
}