Ignore:
Timestamp:
04/03/24 10:33:55 (7 weeks ago)
Author:
jderouillat
Message:

New timers integration/reporting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS3/trunk/src/manager/ressources_manager.cpp

    r2580 r2628  
    1212{ 
    1313  using namespace std; 
     14  extern CLogType logTimers ; 
    1415 
    1516  CRessourcesManager::CRessourcesManager(bool isXiosServer)  
     
    112113  void CRessourcesManager::eventLoop(void) 
    113114  { 
    114     CTimer::get("CRessourcesManager::eventLoop").resume(); 
     115    if (info.isActive(logTimers)) CTimer::get("CRessourcesManager::eventLoop").resume(); 
    115116    int flag ; 
    116117    MPI_Iprobe(MPI_ANY_SOURCE, MPI_ANY_TAG, MPI_COMM_WORLD, &flag, MPI_STATUS_IGNORE); 
     
    122123    } 
    123124 
    124     CTimer::get("CRessourcesManager::eventLoop").suspend(); 
     125    if (info.isActive(logTimers)) CTimer::get("CRessourcesManager::eventLoop").suspend(); 
    125126  } 
    126127   
     
    129130    int commRank ; 
    130131    MPI_Comm_rank(xiosComm_, &commRank) ; 
    131     CTimer::get("CRessourcesManager::checkNotifications lock").resume(); 
     132    if (info.isActive(logTimers)) CTimer::get("CRessourcesManager::checkNotifications lock").resume(); 
    132133    winNotify_->lockWindowExclusive(commRank) ; 
    133     CTimer::get("CRessourcesManager::checkNotifications lock").suspend(); 
    134     CTimer::get("CRessourcesManager::checkNotifications pop").resume(); 
     134    if (info.isActive(logTimers)) CTimer::get("CRessourcesManager::checkNotifications lock").suspend(); 
     135    if (info.isActive(logTimers)) CTimer::get("CRessourcesManager::checkNotifications pop").resume(); 
    135136    winNotify_->popFromLockedWindow(commRank, this, &CRessourcesManager::notificationsDumpIn) ; 
    136     CTimer::get("CRessourcesManager::checkNotifications pop").suspend(); 
    137     CTimer::get("CRessourcesManager::checkNotifications unlock").resume(); 
     137    if (info.isActive(logTimers)) CTimer::get("CRessourcesManager::checkNotifications pop").suspend(); 
     138    if (info.isActive(logTimers)) CTimer::get("CRessourcesManager::checkNotifications unlock").resume(); 
    138139    winNotify_->unlockWindowExclusive(commRank) ; 
    139     CTimer::get("CRessourcesManager::checkNotifications unlock").suspend(); 
     140    if (info.isActive(logTimers)) CTimer::get("CRessourcesManager::checkNotifications unlock").suspend(); 
    140141    if (notifyType_==NOTIFY_CREATE_POOL) createPool() ; 
    141142    else if (notifyType_==NOTIFY_FINALIZE) finalizeSignal() ; 
Note: See TracChangeset for help on using the changeset viewer.