Changeset 2593


Ignore:
Timestamp:
10/11/23 10:18:24 (7 months ago)
Author:
jderouillat
Message:

Rename the MemTrack? namespace associated to CppTrace? (conflict with the --memtrack option), waiting for its full integration

Location:
XIOS3/trunk/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • XIOS3/trunk/src/backtrace.cpp

    r2575 r2593  
    77namespace xios 
    88{ 
    9   namespace MemTrack 
     9  namespace MemCppTrack 
    1010  { 
    1111    void backTrace(std::ostringstream& stack, int n) 
  • XIOS3/trunk/src/backtrace.hpp

    r2575 r2593  
    77namespace xios 
    88{ 
    9   namespace MemTrack 
     9  namespace MemCppTrack 
    1010  { 
    1111    void backTrace(std::ostringstream& stack, int n=0) ; 
  • XIOS3/trunk/src/mpi_garbage_collector.hpp

    r2589 r2593  
    2222 
    2323     void registerCommunicator(MPI_Comm& comm, std::string str) { stack_.push_front(SType{SType::COMM, comm, MPI_WIN_NULL, str}) ;} 
    24      void registerCommunicator(MPI_Comm& comm) { stack_.push_front(SType{SType::COMM, comm, MPI_WIN_NULL, MemTrack::backTrace(2)}) ;} 
     24     void registerCommunicator(MPI_Comm& comm) { stack_.push_front(SType{SType::COMM, comm, MPI_WIN_NULL, MemCppTrack::backTrace(2)}) ;} 
    2525     void registerWindow(MPI_Win& win, std::string str) { stack_.push_front(SType{SType::WIN, MPI_COMM_NULL, win, str}) ;} 
    26      void registerWindow(MPI_Win& win) { stack_.push_front(SType{SType::WIN, MPI_COMM_NULL, win, MemTrack::backTrace(2)}) ;} 
     26     void registerWindow(MPI_Win& win) { stack_.push_front(SType{SType::WIN, MPI_COMM_NULL, win, MemCppTrack::backTrace(2)}) ;} 
    2727      void release(void) 
    2828      { 
  • XIOS3/trunk/src/mpi_tools.cpp

    r2584 r2593  
    1414    { 
    1515      auto it = commTrack_.find(comm) ; 
    16       if (it == commTrack_.end())  commTrack_[comm] = MemTrack::backTrace(3); 
     16      if (it == commTrack_.end())  commTrack_[comm] = MemCppTrack::backTrace(3); 
    1717      else ERROR("CCommtrack::registerComm", << "Communicator already allocated : " << endl<<it->second) 
    1818    } 
Note: See TracChangeset for help on using the changeset viewer.