- Timestamp:
- 05/12/23 15:46:18 (14 months ago)
- Location:
- XIOS2/trunk/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS2/trunk/src/client.cpp
r2456 r2503 303 303 report(0)<< " Memory report : increasing it by a factor will increase performance, depending of the volume of data wrote in file at each time step of the file"<<endl ; 304 304 report(100)<<CTimer::getAllCumulatedTime()<<endl ; 305 report(100)<<CMemChecker::getAllCumulatedMem()<<endl ; 305 if (CXios::reportMemory) 306 { 307 report(100)<<CMemChecker::getAllCumulatedMem()<<endl ; 308 } 306 309 } 307 310 -
XIOS2/trunk/src/cxios.cpp
r2439 r2503 48 48 bool CXios::checkSumSend=false ; 49 49 bool CXios::logMemory=false ; 50 bool CXios::reportMemory=true ; 50 51 51 52 //! Parse configuration file and create some objects from it … … 112 113 113 114 logMemory = getin<bool>("log_memory", false); 115 reportMemory = getin<bool>("memory_report", true); 114 116 115 117 globalComm=MPI_COMM_WORLD ; -
XIOS2/trunk/src/cxios.hpp
r2428 r2503 60 60 static bool checkSumRecv; //!< For debugging, compute a checksum of fields received by the model through the XIOS client 61 61 62 static bool logMemory; //!< Activate memory monitoring for all XIOS process 62 static bool logMemory; //!< Activate memory monitoring for all XIOS process (generate CSV file for https://forge.ipsl.jussieu.fr/ioserver/chrome/site/XIOS_TOOLS/xios_memory.html) 63 static bool reportMemory; //!< Activate memory reporting for all XIOS process (report in log files) 63 64 64 65 public: -
XIOS2/trunk/src/mem_checker.cpp
r2429 r2503 44 44 { 45 45 std::vector<double> memories(0); 46 if ( !CXios::reportMemory ) return memories ; 46 47 memories.clear(); 47 48 -
XIOS2/trunk/src/server.cpp
r2428 r2503 434 434 report(0)<<"Performance report : Ratio : "<<CTimer::get("Process events").getCumulatedTime()/CTimer::get("XIOS server").getCumulatedTime()*100.<<"%"<<endl ; 435 435 report(100)<<CTimer::getAllCumulatedTime()<<endl ; 436 report(100)<<CMemChecker::getAllCumulatedMem()<<endl ; 436 if (CXios::reportMemory) 437 { 438 report(100)<<CMemChecker::getAllCumulatedMem()<<endl ; 439 } 440 437 441 } 438 442
Note: See TracChangeset
for help on using the changeset viewer.