Ignore:
Timestamp:
11/22/22 12:43:52 (17 months ago)
Author:
jderouillat
Message:

Backport the system to log the memory consumption (commit ID [2418-2420,2425-2426])

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS3/branches/xios-3.0-beta/src/server.cpp

    r2399 r2427  
    1313#include "tracer.hpp" 
    1414#include "timer.hpp" 
     15#include "mem_checker.hpp" 
    1516#include "event_scheduler.hpp" 
    1617#include "string_tools.hpp" 
     
    159160      CServer::openInfoStream(CXios::serverFile); 
    160161      CServer::openErrorStream(CXios::serverFile); 
     162 
     163      CMemChecker::logMem( "CServer::initialize" ); 
    161164 
    162165      ///////////////////////////////////////// 
     
    429432      CXios::getMpiGarbageCollector().release() ; // release unfree MPI ressources 
    430433 
     434      CMemChecker::logMem( "CServer::finalize", true ); 
    431435      if (!is_MPI_Initialized) 
    432436      { 
     
    438442      report(0)<<"Performance report : Ratio : "<<CTimer::get("Process events").getCumulatedTime()/CTimer::get("XIOS server").getCumulatedTime()*100.<<"%"<<endl  ; 
    439443      report(100)<<CTimer::getAllCumulatedTime()<<endl ; 
     444      report(100)<<CMemChecker::getAllCumulatedMem()<<endl ; 
    440445       
    441446      CWorkflowGraph::drawWorkFlowGraph_server(); 
Note: See TracChangeset for help on using the changeset viewer.