Ignore:
Timestamp:
05/18/17 17:26:56 (7 years ago)
Author:
ymipsl
Message:

Add "light" memory tracking which must be activated at compile time : make_xios --memtrack light

  • report at info level 10 : max memory consumption and the current memory consumption at the end of exection
  • info at info level 50 : at each timestep, the current memory consumption is printed

YM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/node/context.cpp

    r1135 r1137  
    1515#include "xios_spl.hpp" 
    1616#include "timer.hpp" 
     17#include "memtrack.hpp" 
    1718 
    1819 
     
    11971198      calendar->update(step); 
    11981199      info(50) << "updateCalendar : after : " << calendar->getCurrentDate() << endl; 
    1199  
     1200#ifdef XIOS_MEMTRACK_LIGHT 
     1201      info(50) << " Current memory used by XIOS : "<<  MemTrack::getCurrentMemorySize()*1.0/(1024*1024)<<" Mbyte, at timestep "<<step<<" of context "<<this->getId()<<endl ; 
     1202#endif 
    12001203      if (hasClient) 
    12011204      { 
Note: See TracChangeset for help on using the changeset viewer.